重新安装了dotNetFrameWork,打了Language Pack 后 提示如下中文错误信息,急啊 !!!
“/CCJZJT”应用程序中的服务器错误。
--------------------------------------------------------------------------------未将对象引用设置到对象的实例。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.NullReferenceException: 未将对象引用设置到对象的实例。源错误:
[没有相关的源行]
源文件: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\ccjzjt\bef18619\e7140914\App_Web_bm0nj9ed.7.cs 行: 0 堆栈跟踪:
[NullReferenceException: 未将对象引用设置到对象的实例。]
index..ctor() +32
ASP.index_aspx..ctor() in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\ccjzjt\bef18619\e7140914\App_Web_bm0nj9ed.7.cs:0
__ASP.FastObjectFactory_app_web_bm0nj9ed.Create_ASP_index_aspx() in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\ccjzjt\bef18619\e7140914\App_Web_bm0nj9ed.22.cs:0
System.Web.Compilation.BuildResultCompiledType.CreateInstance() +49
System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +115
System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +31
System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +40
System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +139
System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +120
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155
“/CCJZJT”应用程序中的服务器错误。
--------------------------------------------------------------------------------未将对象引用设置到对象的实例。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.NullReferenceException: 未将对象引用设置到对象的实例。源错误:
[没有相关的源行]
源文件: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\ccjzjt\bef18619\e7140914\App_Web_bm0nj9ed.7.cs 行: 0 堆栈跟踪:
[NullReferenceException: 未将对象引用设置到对象的实例。]
index..ctor() +32
ASP.index_aspx..ctor() in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\ccjzjt\bef18619\e7140914\App_Web_bm0nj9ed.7.cs:0
__ASP.FastObjectFactory_app_web_bm0nj9ed.Create_ASP_index_aspx() in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\ccjzjt\bef18619\e7140914\App_Web_bm0nj9ed.22.cs:0
System.Web.Compilation.BuildResultCompiledType.CreateInstance() +49
System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +115
System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +31
System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +40
System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +139
System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +120
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155
代码如下:#pragma checksum "E:\coca_new\CCJZJT\index.aspx" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "EBE02BEA615C4E211407BF597088A0BF"
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行库版本:2.0.50727.832
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------namespace ASP {
#line 319 "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
using System.Web.Security;
#line default
#line hidden
#line 316 "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
using System.Web;
#line default
#line hidden
#line 318 "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
using System.Web.SessionState;
#line default
#line hidden
#line 5 "E:\coca_new\CCJZJT\index.aspx"
using System.Data;
#line default
#line hidden
#line 314 "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
using System.Text;
#line default
#line hidden
#line 6 "E:\coca_new\CCJZJT\index.aspx"
using System.Web.UI.WebControls;
#line default
#line hidden
#line 320 "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
using System.Web.Profile;
#line default
#line hidden
#line 311 "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
using System.Collections;
#line default
#line hidden
#line 6 "E:\coca_new\CCJZJT\index.aspx"
using System.Web.UI.WebControls.WebParts;
#line default
#line hidden
#line 313 "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
using System.Configuration;
#line default
#line hidden
#line 310 "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
using System;
#line default
#line hidden
#line 4 "E:\coca_new\CCJZJT\index.aspx"
using ASP;
#line default
#line hidden
#line 317 "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
using System.Web.Caching;
#line default
#line hidden
#line 321 "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
using System.Web.UI;
#line default
#line hidden
#line 312 "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
using System.Collections.Specialized;
#line default
#line hidden
#line 315 "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
using System.Text.RegularExpressions;
#line default
#line hidden
#line 324 "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
using System.Web.UI.HtmlControls;
#line default
#line hidden
[System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()]
public class index_aspx : global::index, System.Web.SessionState.IRequiresSessionState, System.Web.IHttpHandler {
private static bool @__initialized;
private static object @__stringResource;
private static object @__fileDependencies;
public index_aspx() {
string[] dependencies;
((index)(this)).AppRelativeVirtualPath = "~/index.aspx";
if ((global::ASP.index_aspx.@__initialized == false)) {
global::ASP.index_aspx.@__stringResource = this.ReadStringResource();
dependencies = new string[4];
dependencies[0] = "~/index.aspx";
dependencies[1] = "~/MasterPage.master";
dependencies[2] = "~/Controls/TongZhiTongGao.ascx";
dependencies[3] = "~/Controls/JiTuanDongTai.ascx";
global::ASP.index_aspx.@__fileDependencies = this.GetWrappedFileDependencies(dependencies);
global::ASP.index_aspx.@__initialized = true;
}
this.Server.ScriptTimeout = 30000000;
}
protected System.Web.Profile.DefaultProfile Profile {
get {
return ((System.Web.Profile.DefaultProfile)(this.Context.Profile));
}
}
protected System.Web.HttpApplication ApplicationInstance {
get {
return ((System.Web.HttpApplication)(this.Context.ApplicationInstance));
}
}
private global::ASP.controls_tongzhitonggao_ascx @__BuildControlTongZhiTongGao() {
global::ASP.controls_tongzhitonggao_ascx @__ctrl;
#line 12 "E:\coca_new\CCJZJT\index.aspx"
@__ctrl = new global::ASP.controls_tongzhitonggao_ascx();
#line default
#line hidden
this.TongZhiTongGao = @__ctrl;
#line 12 "E:\coca_new\CCJZJT\index.aspx"
@__ctrl.InitializeAsUserControl(this.Page);
#line default
#line hidden
#line 12 "E:\coca_new\CCJZJT\index.aspx"
@__ctrl.ID = "TongZhiTongGao";
#line default
#line hidden
return @__ctrl;
}
private global::ASP.controls_jituandongtai_ascx @__BuildControlJiTuanDongTai() {
global::ASP.controls_jituandongtai_ascx @__ctrl;
#line 13 "E:\coca_new\CCJZJT\index.aspx"
@__ctrl = new global::ASP.controls_jituandongtai_ascx();
#line default
#line hidden
this.JiTuanDongTai = @__ctrl;
#line 13 "E:\coca_new\CCJZJT\index.aspx"
@__ctrl.InitializeAsUserControl(this.Page);
#line default
#line hidden
#line 13 "E:\coca_new\CCJZJT\index.aspx"
@__ctrl.ID = "JiTuanDongTai";
#line default
#line hidden
return @__ctrl;
}
private global::System.Web.UI.WebControls.HyperLink @__BuildControl__control4() {
global::System.Web.UI.WebControls.HyperLink @__ctrl;
#line 18 "E:\coca_new\CCJZJT\index.aspx"
@__ctrl = new global::System.Web.UI.WebControls.HyperLink();
#line default
#line hidden
@__ctrl.TemplateControl = this;
@__ctrl.ApplyStyleSheetSkin(this);
#line 18 "E:\coca_new\CCJZJT\index.aspx"
@__ctrl.ID = "Linkbutton8";
#line default
#line hidden
#line 18 "E:\coca_new\CCJZJT\index.aspx"
@__ctrl.Font.Size = System.Web.UI.WebControls.FontUnit.XSmall;
#line default
#line hidden
#line 18 "E:\coca_new\CCJZJT\index.aspx"
@__ctrl.ForeColor = System.Drawing.Color.Red;
#line default
#line hidden
#line 18 "E:\coca_new\CCJZJT\index.aspx"
@__ctrl.DataBinding += new System.EventHandler(this.@__DataBinding__control4);
#line default
#line hidden
return @__ctrl;
}
System.Web.UI.WebControls.HyperLink dataBindingExpressionBuilderTarget;
System.Web.UI.WebControls.DataListItem Container;
dataBindingExpressionBuilderTarget = ((System.Web.UI.WebControls.HyperLink)(sender));
Container = ((System.Web.UI.WebControls.DataListItem)(dataBindingExpressionBuilderTarget.BindingContainer));
#line 18 "E:\coca_new\CCJZJT\index.aspx"
dataBindingExpressionBuilderTarget.NavigateUrl = System.Convert.ToString( DataBinder.Eval(Container.DataItem,"imagePath") , System.Globalization.CultureInfo.CurrentCulture);
#line default
#line hidden
#line 18 "E:\coca_new\CCJZJT\index.aspx"
dataBindingExpressionBuilderTarget.ImageUrl = System.Convert.ToString( DataBinder.Eval(Container.DataItem,"imagePATH") , System.Globalization.CultureInfo.CurrentCulture);
#line default
#line hidden
}
private void @__BuildControl__control3(System.Web.UI.Control @__ctrl) {
System.Web.UI.IParserAccessor @__parser = ((System.Web.UI.IParserAccessor)(@__ctrl));
#line 16 "E:\coca_new\CCJZJT\index.aspx"
@__parser.AddParsedSubObject(new System.Web.UI.LiteralControl(" \r\n "));
#line default
#line hidden
global::System.Web.UI.WebControls.HyperLink @__ctrl1;
#line 16 "E:\coca_new\CCJZJT\index.aspx"
@__ctrl1 = this.@__BuildControl__control4();
#line default
#line hidden
#line 16 "E:\coca_new\CCJZJT\index.aspx"
@__parser.AddParsedSubObject(@__ctrl1);
#line default
#line hidden
#line 16 "E:\coca_new\CCJZJT\index.aspx"
@__parser.AddParsedSubObject(new System.Web.UI.LiteralControl(" \r\n "));
#line default
#line hidden
}
private global::System.Web.UI.WebControls.DataList @__BuildControldlITNews() {
global::System.Web.UI.WebControls.DataList @__ctrl;
#line 16 "E:\coca_new\CCJZJT\index.aspx"
@__ctrl = new global::System.Web.UI.WebControls.DataList();
#line default
#line hidden
this.dlITNews = @__ctrl;
@__ctrl.ApplyStyleSheetSkin(this);
#line 16 "E:\coca_new\CCJZJT\index.aspx"
@__ctrl.ItemTemplate = new System.Web.UI.CompiledTemplateBuilder(new System.Web.UI.BuildTemplateMethod(this.@__BuildControl__control3));
#line default
#line hidden
#line 16 "E:\coca_new\CCJZJT\index.aspx"
@__ctrl.ID = "dlITNews";
#line default
#line hidden
#line 16 "E:\coca_new\CCJZJT\index.aspx"
@__ctrl.Width = new System.Web.UI.WebControls.Unit(100, System.Web.UI.WebControls.UnitType.Percentage);
#line default
#line hidden
#line 16 "E:\coca_new\CCJZJT\index.aspx"
@__ctrl.DataKeyField = "id";
#line default
#line hidden
return @__ctrl;
}
private global::System.Web.UI.HtmlControls.HtmlForm @__BuildControlform1() {
global::System.Web.UI.HtmlControls.HtmlForm @__ctrl;
#line 10 "E:\coca_new\CCJZJT\index.aspx"
@__ctrl = new global::System.Web.UI.HtmlControls.HtmlForm();
#line default
#line hidden
this.form1 = @__ctrl;
@__ctrl.TemplateControl = this;
#line 10 "E:\coca_new\CCJZJT\index.aspx"
@__ctrl.ID = "form1";
#line default
#line hidden
System.Web.UI.IParserAccessor @__parser = ((System.Web.UI.IParserAccessor)(@__ctrl));
#line 10 "E:\coca_new\CCJZJT\index.aspx"
@__parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\r\n\r\n "));
#line default
#line hidden
global::ASP.controls_tongzhitonggao_ascx @__ctrl1;
#line 10 "E:\coca_new\CCJZJT\index.aspx"
@__ctrl1 = this.@__BuildControlTongZhiTongGao();
#line default
#line hidden
#line 10 "E:\coca_new\CCJZJT\index.aspx"
@__parser.AddParsedSubObject(@__ctrl1);
#line default
#line hidden
#line 10 "E:\coca_new\CCJZJT\index.aspx"
@__parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\r\n "));
#line default
#line hidden
global::ASP.controls_jituandongtai_ascx @__ctrl2;
#line 10 "E:\coca_new\CCJZJT\index.aspx"
@__ctrl2 = this.@__BuildControlJiTuanDongTai();
#line default
#line hidden
#line 10 "E:\coca_new\CCJZJT\index.aspx"
@__parser.AddParsedSubObject(@__ctrl2);
#line default
#line hidden
#line 10 "E:\coca_new\CCJZJT\index.aspx"
@__parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\r\n <div>\r\n <marquee onmouseover=\"this.stop()\" onmouseout=\"this.start()\"" +
" scrollAmount=\"3\" scrollDelay=\"0.01\" direction=\"up\" width=\"90%\" BackColor=\"##FFE" +
"0C0\"> \r\n "));
#line default
#line hidden
global::System.Web.UI.WebControls.DataList @__ctrl3;
#line 10 "E:\coca_new\CCJZJT\index.aspx"
@__ctrl3 = this.@__BuildControldlITNews();
#line default
#line hidden
#line 10 "E:\coca_new\CCJZJT\index.aspx"
@__parser.AddParsedSubObject(@__ctrl3);
#line default
#line hidden
#line 10 "E:\coca_new\CCJZJT\index.aspx"
@__parser.AddParsedSubObject(new System.Web.UI.LiteralControl("</marquee> </div>\r\n\r\n\r\n\r\n \r\n "));
#line default
#line hidden
return @__ctrl;
}