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 'WPrjStatus.Global'.Source Error: Line 1: <%@ Application Codebehind="Global.asax.cs" Inherits="WPrjStatus.Global" %> 这是什么错呢???
这个是你程序代码的错误,请将你的global.asax.cs的内容贴出来
using System; using System.Collections; using System.ComponentModel; using System.Web; using System.Web.SessionState;namespace WPrjStatus { /// <summary> /// Summary description for Global. /// </summary> public class Global : System.Web.HttpApplication { //定义公共变量 public static String AppDbf = "Provider=OraOLEDB.Oracle.1;Password=itbook;Persist Security Info=True;User ID=itbook;Data Source=it_book;"; public static String AppErrorPage = "ShowError.aspx"; public Global() { InitializeComponent();
#region Web Form Designer generated code /// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { } #endregion } }
然后安装vs.net 2002的第五张盘,里面包括sp2、mdac2.7、framework1.0等。如果不安装mdac2.7可能会连不上sql server数据库顺序倒了可以运行Regsvr32.exe Aspnet_isapi.dll注册
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 'WPrjStatus.Global'.Source Error:
Line 1: <%@ Application Codebehind="Global.asax.cs" Inherits="WPrjStatus.Global" %>
这是什么错呢???
using System.Collections;
using System.ComponentModel;
using System.Web;
using System.Web.SessionState;namespace WPrjStatus
{
/// <summary>
/// Summary description for Global.
/// </summary>
public class Global : System.Web.HttpApplication
{
//定义公共变量
public static String AppDbf = "Provider=OraOLEDB.Oracle.1;Password=itbook;Persist Security Info=True;User ID=itbook;Data Source=it_book;";
public static String AppErrorPage = "ShowError.aspx"; public Global()
{
InitializeComponent();
}
protected void Application_Start(Object sender, EventArgs e)
{ }
protected void Session_Start(Object sender, EventArgs e)
{
Session.Timeout = 25;
} protected void Application_BeginRequest(Object sender, EventArgs e)
{ } protected void Application_EndRequest(Object sender, EventArgs e)
{ } protected void Application_AuthenticateRequest(Object sender, EventArgs e)
{ } protected void Application_Error(Object sender, EventArgs e)
{ } protected void Session_End(Object sender, EventArgs e)
{ } protected void Application_End(Object sender, EventArgs e)
{ }
#region Web Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
}
#endregion
}
}