OWIN Startup Class Missing

前端 未结 19 1260
攒了一身酷
攒了一身酷 2020-11-29 15:40

I\'m getting this error as my project is not able to find the reference for OWIN startup class. I\'ve even installed all the OWIN reference packages through Nug

19条回答
  •  不知归路
    2020-11-29 16:29

    This could be faced in Visual Studio 2015 as well when you use the Azure AD with a MVC project. Here it create the startup file as Startup.Auth.cs in App_Start folder but it will be missing the

    [assembly: OwinStartup(typeof(MyWebApp.Startup))]
    

    So add it and you should be good to go. This goes before the namespace start.

提交回复
热议问题