Can't find Request.GetOwinContext

后端 未结 13 1274
北荒
北荒 2020-12-04 22:47

I have been searching for an hour trying to figure out why this isn\'t working.

I have a ASP.Net MVC 5 application with a WebAPI. I am trying to get Request.GetOwin

13条回答
  •  青春惊慌失措
    2020-12-04 23:39

    None of these worked for me. I had to compare Nuget packages with one that was created with Identity and I found this Nuget package missing which when added fixed the issue for me

    Microsoft.Owin.Host.SystemWeb
    

    Apparently you need it to run OWIN on IIS using the ASP.NET request pipeline (read you're screwed without it!)

提交回复
热议问题