2010-08-26 146 views
1

我有一个ASP.net项目,我已经复制和源文件粘贴到另一台计算机,但是当我尝试,并在此计算机上本地主机运行它们:复制ASP.net项目到另一个IIS

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,如果有帮助的话。

+0

值得一提的是,如果您有任何此类问题(即IIS错误,而不是asp.net错误),您可能应该尝试在http://www.serverfault.com上询问,而不是在此处询问这是一个服务器配置问题,而不是编码isse =) – Rob 2010-08-26 09:53:49

回答

3

它看起来像你没有使用IIS管理工具将文件夹放到应用程序/虚拟目录中。有一步一步的instructions on Technet,以及在iis.net上的overview of Sites, Applications and Virtual Directories

该消息的一部分:

这部分配置不能 在此路径中使用。发生这种情况时 该部分锁定在父级 级别。锁定默认为 (overrideModeDefault =“Deny”),或者通过位置标记 overrideMode =“Deny”或传统 allowOverride =“false”明确设置 。

由于<handlers>部分应该是可更改的,因此似乎表明该文件夹未设置为虚拟目录/应用程序。

+0

可以;似乎无法在任何地方找到此工具,我在Windows 7 – 2010-08-26 09:53:04

+0

@Tom Gullen,开始>可选功能> Internet信息服务> Web管理工具> IIS管理控制台 – Rob 2010-08-26 09:59:48

+0

我已经创建了一个虚拟目录到网站,但它没有改变任何东西 – 2010-08-26 10:07:20

相关问题