0
我想在IIS上本地託管我的站點。但是,當我瀏覽網站,我得到這個錯誤:IIS上的Web應用程序
Server Error in '/baby_boy' Application.
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 'baby_boy`.SiteMaster'.
Source Error:
Line 1: <%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site.master.cs" Inherits="baby_boy.SiteMaster" %>
Line 2:
Line 3: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
Source File: baby_boy/Site.master Line: 1
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.237
如何解決這個問題的任何意見將不勝感激。 謝謝。
的Site.Master.cs是在同一目錄中作爲Site.Master。 – johnnie
在這種情況下,Site.Master中存在拼寫錯誤。看到修改後的答案 –