OwinStartup nicht Ab ... Warum?

Habe ich die folgende Klasse auf einer ASP.NET MVC 5 Seite:

[assembly: OwinStartup(typeof(MVCSite.Startup))]
namespace MVCSite {

  public partial class Startup {

    public void Configuration(IAppBuilder application) {

      application.UseCookieAuthentication(new CookieAuthenticationOptions {
        AuthenticationType = DefaultAuthenticationTypes.ApplicationCookie,
        LoginPath = new PathString("/Account/Login")
      });

      application.UseExternalSignInCookie(DefaultAuthenticationTypes.ExternalCookie);
    }
  }
}

Im Web.Config habe ich Folgendes stehen:

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

Habe ich einen Haltepunkt in Startup.Konfiguration ist aber nicht dieses Feuer ...

Ahnung warum?

<add key="owin:AutomaticAppStartup" value="false"/> Vermutlich wollen Sie AutomaticAppStartup zu true ? Beachten Sie, dass diese Anleitung sind keine Schritt-für-Schritt. Die erste Liste zeigt Ihnen unterschiedliche Möglichkeiten.
1) Wie bereits von @ta.speot.ist möchten Sie vielleicht, um ein den tatsächlichen Wert der owin:AutomaticAppStartup " appSetting. 2) haben Sie Microsoft.Owin.Host.SystemWeb nuget-Paket installiert in Ihrem Projekt? Dieses Paket wird nicht benötigt für die Start-Klasse abgeholt werden. Sie können überprüfen, das tutorial für weitere Informationen : asp.net/aspnet/overview/owin-and-katana/...
Danke. Das war das problem ... ich vermisse interpretieren Sie die Informationen auf owin.
Mögliche Duplikate von OwinStartup nicht feuern

InformationsquelleAutor Miguel Moura | 2013-11-04

Schreibe einen Kommentar