我的 Asp.net MVC5 应用程序遇到 owin 启动问题
I am suffering from owin startup issue my Asp.net MVC5 application
尝试加载应用程序时出现以下错误。
The OwinStartup attribute discovered in assembly 'Search4Expert.Service.WebService' referencing startup type 'Search4Expert.Service.WebService.Startup' conflicts with the attribute in assembly 'Search4Expert.Web.UI' referencing startup type 'Search4Expert.Web.UI.Startup' because they have the same FriendlyName ''. Remove or rename one of the attributes, or reference the desired type directly.
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.
来源错误:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
请任何人帮助我。
我在新 ASP.NET applications.All 中经常遇到这个问题,您需要做的是打开 Web.config 文件并在 <appSettings>
元素下添加以下行:
<appSettings>
<add key="owin:AutomaticAppStartup" value="false" />
</appSettings>
- 删除项目bin和obj文件夹文件。
- 重建项目。
尝试加载应用程序时出现以下错误。
The OwinStartup attribute discovered in assembly 'Search4Expert.Service.WebService' referencing startup type 'Search4Expert.Service.WebService.Startup' conflicts with the attribute in assembly 'Search4Expert.Web.UI' referencing startup type 'Search4Expert.Web.UI.Startup' because they have the same FriendlyName ''. Remove or rename one of the attributes, or reference the desired type directly. 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.
来源错误:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
请任何人帮助我。
我在新 ASP.NET applications.All 中经常遇到这个问题,您需要做的是打开 Web.config 文件并在 <appSettings>
元素下添加以下行:
<appSettings>
<add key="owin:AutomaticAppStartup" value="false" />
</appSettings>
- 删除项目bin和obj文件夹文件。
- 重建项目。