2016-06-06 3 views
-3

При попытке загрузить приложение возникли следующие ошибки.Я страдаю от проблемы с запуском owin. Приложение ASP.NET MVC5

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. 

enter image description here

Пожалуйста, любой один помочь мне.

+2

Прочтите и следуйте инструкциям в сообщении об ошибке. Ясно, что вам нужно делать. Это даже говорит вам, где искать. – Nkosi

ответ

0

Я получаю эту проблему довольно часто в новом ASP.NET applications.All вы должны сделать, это открыть вам файл Web.config и следующую строку к нему под <appSettings> элемента:

<appSettings> 
    <add key="owin:AutomaticAppStartup" value="false" /> 
    </appSettings> 

И в будущем прочитайте сообщение об ошибке, которое ASP.NET дает вам. Из сообщения об ошибке видно, что нужно сделать, чтобы исправить проблему. Простой поиск в Google также показал бы, как исправить вышеупомянутую ошибку.

Смежные вопросы