2010-08-26 127 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

相關問題