No owin.Environment item was found in the context

前端 未结 12 1858
心在旅途
心在旅途 2020-12-10 00:44

Microsoft recently introduced new ASP.NET Identity - replacement for old (Simple)Membership. Unfortunately, I can\'t use this new membership system in my old project because

12条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-10 01:14

    I have no idea why this works but it did!

    My problem was in VS2013. In the WebConfig, debug was set to true and I got that error. When I set it to false it worked fine and then I reset to true and it continued to work OK!

    At first when debug was true before changing to false, I put a break point in my StartUp code and it wasn't reached at all. After changing to false pressing save and then back to true the StartUp code was called and the program works like it should.

提交回复
热议问题