尝试运行页面时,我在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
两件事情: 1)接受回答您的存在的问题,否则你会发现人们将不愿意帮助。 2)你能否提供一个代码样本来产生你所看到的错误? – 2011-12-20 17:42:22
什么命名空间/类在代码隐藏?该页面正试图从代码中加载一个名为“WebApplication1.HolidayRequests”的类,但未找到该类。 – David 2011-12-20 17:43:11
<%@ Page Title =“”Language =“vb”AutoEventWireup =“false”MasterPageFile =“〜/ HRSite.Master”CodeBehind =“HolidayRequests.aspx.vb”Inherits =“WebApplication1.HolidayRequests”%> – user1055487 2011-12-20 17:43:19