2011-12-20 58 views
0

嘗試運行頁面時,我在Visual Studio中不斷收到以下錯誤。 每當我創建一個新的Web表單時都會發生,我不知道爲什麼。嘗試加載頁面的ASP.NET分析器錯誤

如果我刪除繼承它然後工作,但我的代碼頁然後不能識別此頁上的任何按鈕等等,所以並不真正解決問題。

永久解決方案的任何想法?

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 'WebApplication1.HolidayRequests'. Source Error: Line 1: <%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/HRSite.Master" CodeBehind="HolidayRequests.aspx.vb" Inherits="WebApplication1.HolidayRequests" %>

Source File: /HR/HolidayRequests.aspx Line: 1

+3

兩件事情: 1)接受回答您的存在的問題,否則你會發現人們將不願意幫助。 2)你能否提供一個代碼樣本來產生你所看到的錯誤? – 2011-12-20 17:42:22

+0

什麼命名空間/類在代碼隱藏?該頁面正試圖從代碼中加載一個名爲「WebApplication1.HolidayRequests」的類,但未找到該類。 – David 2011-12-20 17:43:11

+0

<%@ Page Title =「」Language =「vb」AutoEventWireup =「false」MasterPageFile =「〜/ HRSite.Master」CodeBehind =「HolidayRequests.aspx.vb」Inherits =「WebApplication1.HolidayRequests」%> – user1055487 2011-12-20 17:43:19

回答

0

試試這個

<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/HRSite.Master" CodeBehind="HolidayRequests.aspx.vb" Inherits="HolidayRequests" %>