我的MVC应用程序了,直到几分钟前,(作为解决方案的一部分,与ASP /净籍)已工作的罚款。然而,如果没有故意更改任何相关的每一项要求,甚至对我的HomeController(其中没有任何授权属性等)。
My MVC app has, until a few minutes ago, been working fine (with asp/net membership as part of the solution). However, without knowingly changing anything relevant every request, even to my homecontroller (which doesn't have any authorization attributes etc).
我已经采取了所有条目出的web.config现在有关授权,我已经检查具有以下的对ApplicationHost.config:
I've taken all the entries out of the web.config for now relating to authorization, and I've check the applicationhost.config which has the following:
<access sslFlags="None" /> <applicationDependencies> <application name="Active Server Pages" groupId="ASP" /> </applicationDependencies> <authentication> <anonymousAuthentication enabled="true" userName="" /> <basicAuthentication enabled="false" /> <clientCertificateMappingAuthentication enabled="false" /> <digestAuthentication enabled="false" /> <iisClientCertificateMappingAuthentication enabled="false"> </iisClientCertificateMappingAuthentication> <windowsAuthentication enabled="false"> <providers> <add value="Negotiate" /> <add value="NTLM" /> </providers> </windowsAuthentication> </authentication> <authorization> <add accessType="Allow" users="*" /> </authorization>任何人都可以提出什么可能会导致此?
Can anyone suggest what may be causing this?
感谢
在此进一步的信息,我切换到现在用完整的IIS和它做工精细,所以它看起来像它的前IIS preSS问题。任何线索的原因是什么?有没有完整的IIS前preSS其他GUI比系统托盘图标?
推荐答案选项 - 1:
在对ApplicationHost.config检查是否有如下所示的任何条目。如果有任何这样的条目从假到真改变anonymousAuthetication启用值。
In applicationhost.config check if there is any entry as shown below. If there is any such entry change anonymousAuthetication enabled value from 'false' to 'true'.
<location path="YOUR-APPLICATION-NAME"> <system.webServer> <security> <authentication> <anonymousAuthentication enabled="false" /> </authentication> </security> </system.webServer> </location>选项 - 2:
Option-2:
如果您正在使用Visual Studio,确保anonymousAuthentication已启用。
If you are using visual studio, make sure that anonymousAuthentication is enabled.
更多推荐
所有请求都得到HTTP错误401.2
发布评论