1台全新安装的Windows Server 2012服务器,运行ASP.NET站点出现下面的错误:
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.
...
Config Error This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default (overrideModeDefault="Deny"), or set explicitly by a location tag with overrideMode="Deny" or the legacy allowOverride="false".
...
Config Source:
180: <system.webServer>
181: <modules runAllManagedModulesForAllRequests="true">
是安装IIS时没有选中ASP.NET 4.6引起的