2009-08-14 31 views
3

在我的MVC應用程序,我有一個名爲「管理員」,「轉換爲Web應用程序」的子文件夾。在IIS中,Admin文件夾也被設置爲Web應用程序。爲什麼ASP.NET MVC配置錯誤與子文件夾作爲Web應用程序無法加載站點主站類型

發佈我的完整應用程序後,當試圖在Admin文件夾中打開Default.aspx時,出現配置錯誤。

編輯

我提出建議的更改和補充:

<location path="." inheritInChildApplications="false"> 
    <system.web>...</system.web> 
</location> 

現在我得到一個新的錯誤:

Parser Error: Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not load type 'UI.Administration.Site'.

Source Error:

Line 1: <%@ Master Language="C#" CodeBehind="Site.master.cs" Inherits="UI.Administration.Site" %>

回答

相關問題