Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.2k views
in Technique[技术] by (71.8m points)

asp.net identity - No owin.Environment item was found in the context - only on server

I'm getting this error: No owin.Environment item was found in the context

I've seen a zillion posts telling me that I need <appSettings> <add key="owin:AppStartup" value="[AssemblyName].Startup, [AssemblyName]" /> </appSettings> but that does nothing for me.

I am running Identity 2.0 and all upgraded OWIN components.

Also, this runs fine locally, but when pushed to my VM, I get this error?

Seems like either a setting is off or something else needs to be installed. WebPI says I have .NET 4.5.1 installed.

Anyone know how to fix this?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Bah! The server needed to be rebooted. I wasn't prompted to, so I figured I didn't need to. I did. Have I learned nothing from The IT Crowd!? ;)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...