Quantcast
Channel: Owin error with ASP.NET MVC application - Stack Overflow
Viewing all articles
Browse latest Browse all 14

Answer by LaoR for Owin error with ASP.NET MVC application

$
0
0

The problem is that the Gators3.dll and MyFirstProject2.dll are in the same folder (I guess it is bin folder on your server) and both are using Owin middleware. If you do not need MyFirstProject2.dll then the easiest way would be to delete that assembly. If you need it, but without Owin - add following line to Web.config/app.config in your MyFirstProject2 project: <add key="owin:AutomaticAppStartup" value="False" />

If you need to use Owin for two projects configure friendly names for both of them.

  • Gators3 project:

Change Owin startup attribute to something like:

 attribute [assembly: OwinStartupAttribute("GatorsConfig", typeof(Gators3.Startup))]

And add following line to Web.config within appSettings section:

   <add key="owin:appStartup" value="GatorsConfig" /> 
  • MyFirstProject2 project:

Change Owin startup attribute to something like:

   attribute [assembly: OwinStartupAttribute("MyFirstProject2Config", typeof(MyFirstProject2.Startup))]

And add following line to Web.config within appSettings section:

   <add key="owin:appStartup" value="MyFirstProject2Config" />

Viewing all articles
Browse latest Browse all 14

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>