This error
The following errors occurred while attempting to load the app. - No assembly found containing an OwinStartupAttribute. - The given type or method 'false' was not found. Try specifying the Assembly. To disable OWIN startup discovery, add the appSetting owin:AutomaticAppStartup with a value of "false" in your web.config. To specify the OWIN startup Assembly, Class, or Method, add the appSetting owin:AppStartup with the fully qualified startup class or configuration method name in your web.config.
appears on my screen on the most face burningly ugly error page ever created in history.
Ive tried to follow the instructions on the page by inserting the owin:AutomaticAppStartup in the config.
<appSettings > <add key="owin:AppStartup" value="false"></add> </appSettings>
this did not fix the problem. Any suggestions?
In Visual Studio 2017 right-click the project and select Add Class. - In the Add New Item dialog box, enter OWIN in the search field, and change the name to Startup. cs, and then select Add. The next time you want to add an Owin Startup class, it will be in available from the Add menu.
In an OWIN application there is a Startup class that determines the components for the pipeline of the application. I am defining the OWIN startup class. In that context, you can connect with your OWIN startup class at runtime by various ways. It depends on your hosting model like IIS, OwinHost, IIS-Express.
Add this code in web.config
under the <configuration>
tag as shown in image below. Your error should then be gone.
<configuration> <appSettings> <add key="owin:AutomaticAppStartup" value="false" /> </appSettings> ... </configuration>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With