我有一个ASP.net项目,我已经将源文件复制并粘贴到另一台计算机上,但当我尝试在这台计算机的本地主机上运行它们时:
Error Summary
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.
Detailed Error Information
Module IIS Web Core
Notification BeginRequest
Handler Not yet determined
Error Code 0x80070021
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 File \\?\C:\inetpub\wwwroot\myproj\myproj\web.config
Requested URL http://localhost:80/myproj/myproj/default.aspx
Physical Path C:\inetpub\wwwroot\myproj\myproj\default.aspx
Logon Method Not yet determined
Logon User Not yet determined
Config Source
96: </modules>
97: <handlers>
98: <remove name="WebServiceHandlerFactory-Integrated"/>如果有任何帮助的话,我将把它从IIS6转移到IIS7。
发布于 2010-08-26 17:49:40
看起来您尚未使用IIS管理工具将该文件夹创建为应用程序/虚拟目录。在iis.net上有step-by-step instructions on Technet和一个overview of Sites, Applications and Virtual Directories。
消息的部分:
此配置节不能在此路径中使用。当节在父级被锁定时,就会发生这种情况。锁定要么是默认的(overrideModeDefault=“拒绝”),要么是由带有overrideMode="Deny“或遗留allowOverride="false”的位置标签显式设置的。
似乎并未将该文件夹设置为虚拟目录/应用程序,因为<handlers>部分应该是可更改的。
https://stackoverflow.com/questions/3573854
复制相似问题