2016-06-06 9 views
-3

Die folgenden Fehler traten beim Versuch auf, die App zu laden.Ich leide an meinem Startup-Problem meine Asp.net MVC5-Anwendung

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.

Quellfehler:

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

Bitte jemand mir helfen.

+2

Lesen und befolgen Sie die Anweisungen in der Fehlermeldung. Es ist klar, was Sie tun müssen. Es sagt dir sogar, wo du hinschauen sollst. – Nkosi

Antwort

0

ich dieses Problem sehr oft in neuen ASP.NET Anwendungen.Alle müssen Sie Sie öffnen Web.config-Datei und die folgende Zeile, um es unter dem <appSettings> Element tun:

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

Und in Zukunft Bitte lesen Sie die Fehlermeldung, die ASP.NET Ihnen gibt.Es ist ziemlich klar von der Fehlermeldung, was getan werden muss, um das Problem zu beheben.Eine einfache Google-Suche hätte Ihnen auch gezeigt, wie Sie den oben genannten Fehler beheben.