我有一个aspx页面(Project.aspx
)和一个aspx.cs
代码(Project.aspx.cs
)。本网站安装在客户端,这在以前工作正常。但是现在这不起作用并抛出黄页如下:
Server Error in '/mywebcom' 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 'MyNameSpace.Reporting.UI._Default'.
Source Error:
Line 1: <%@ Page Language="C#" AutoEventWireup="true" EnableEventValidation="false" CodeBehind="Project.aspx.cs" Inherits="MyNameSpace.Reporting.UI._Default" %>
Line 2:
Line 3: <%@ Register Src="controls/Search.ascx" TagName="Search" TagPrefix="uc1" %>
Source File: /myweb/tool/reporting/Project.aspx Line: 1
Version Information: Microsoft .NET Framework Version:2.0.50727.5448; ASP.NET
Version:2.0.50727.5456
请帮帮我一些事。 非常感谢。
答案 0 :(得分:0)
位:
Inherits="MyNameSpace.Reporting.UI._Default"
在你的page指令中寻找一个名为_Default的代码隐藏类。更改此项以匹配调用代码隐藏类的任何内容。