The requested page cannot be accessed because the related configuration data for the page is invalid

当在VS2013下开发web site时,调试时都是在IIS Express中进行的,没有问题。当部署到IIS中,出现:The requested page cannot be accessed because the related configuration data for the page is invalid“

配置错误 不能在此路径中使用此配置节。如果在父级别上锁定了该节,便会出现这种情况。锁定是默认设置的(overrideModeDefault="Deny"),或者是通过包含 overrideMode="Deny"或旧有的 allowOverride="false" 的位置标记明确设置的。

后来上网找寻是要在win8.1的program features中开启一些features.

在控制面板————》程序————》启用或关闭windows功能————》Internet Infomation Service————》万维网服务————》应用程序开发功能————》里面一定要把Asp.Net *.*选上

原文地址:https://www.cnblogs.com/sdikerdong/p/4335009.html