Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No assembly found containing an OwinStartupAttribute Error

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.

enter image description here

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?

like image 332
NVA Avatar asked Aug 29 '16 02:08

NVA


People also ask

How do I specify OWIN startup Assembly?

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.

What is OWIN startup class?

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.


1 Answers

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> 

Check Image Below

like image 138
Heemanshu Bhalla Avatar answered Oct 03 '22 04:10

Heemanshu Bhalla