Could not load type '_Default'

作者:vkvi 来源:ITPOW(原创) 日期:2009-9-29

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 '_Default'.
 
Source Error:
 
 
Line 1:  <%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>

如果文件是完整的,那么请检查一下是不是 ASP.NET 版本不对。ASP.NET 1.1 是不支持这种代码独立为一个文件的写法的,所以请在 IIS 的站点或虚拟目录上点击右键->属性->ASP.NET,看看所选择版本,应该在 2.0 及以上才行。

相关文章