本文介绍了在上下文中未找到owin.Environment项目-仅在服务器上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到此错误:No owin.Environment item was found in the context

我已经看到无数的帖子告诉我,我需要<appSettings> <add key="owin:AppStartup" value="[AssemblyName].Startup, [AssemblyName]" /> </appSettings>,但这对我无济于事.

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.

我正在运行Identity 2.0和所有升级的OWIN组件.

I am running Identity 2.0 and all upgraded OWIN components.

此外,这在本地运行良好,但是当推送到我的VM时,出现此错误吗?

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

似乎关闭了设置或需要安装其他设置. WebPI说我已经安装了.NET 4.5.1.

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?

推荐答案

B!服务器需要重启.没有提示我,所以我认为我不需要.我做到了我没有从IT人群中学到任何东西吗? ;)

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!? ;)

这篇关于在上下文中未找到owin.Environment项目-仅在服务器上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-30 08:51