简体   繁体   English

IpRestrictionModule-HTTP错误500.19-内部服务器错误

[英]IpRestrictionModule - HTTP Error 500.19 - Internal Server Error

After trying multiple configuration changes, I cannot seem to get past this error. 尝试进行多个配置更改后,我似乎无法摆脱此错误。 This is a fresh install of Windows Server 2012R2, with all of the options selected under the ASP.NET/IIS modules and features selected. 这是Windows Server 2012R2的全新安装,同时在ASP.NET/IIS模块和功能下选择了所有选项。 I'm using Visual Studio 2013, and the target framework is 4.5 我使用的是Visual Studio 2013,目标框架为4.5

I have also executed the following commands: 我还执行了以下命令:

%windir%\system32\inetsrv\appcmd.exe unlock config -section:system.webServer/handlers
%windir%\system32\inetsrv\appcmd.exe unlock config -section:system.webServer/security/ipSecurity
%windir%\system32\inetsrv\appcmd.exe unlock config -section:system.webServer/modules

在此处输入图片说明

Try adding 尝试添加

-commit:apphost

to the command, like this 像这样

%windir%\system32\inetsrv\appcmd.exe unlock config section:system.webServer/security/ipSecurity -commit:apphost

so that the unlocking is applied at the topmost (applicationhost.config) level instead of the lower web.config levels 以便将解锁应用到最高(applicationhost.config)级别,而不是较低的web.config级别

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM