主题:帮看看吧,大侠们
异常详细信息: System.NullReferenceException: 未将对象引用设置到对象的实例。
源错误:
行 259: string str=System.Configuration.ConfigurationSettings.AppSettings["conn"].ToString();
行 260: SqlConnection cn=new SqlConnection(str);
行 261: cn.Open();
行 262: try
行 263: {
源文件: c:\inetpub\wwwroot\fzzp\index.aspx.cs 行: 261
堆栈跟踪:
[NullReferenceException: 未将对象引用设置到对象的实例。]
LoadLibraryW(UInt16* ) +0
System.EnterpriseServices.Thunk.Security.Init() +76
System.EnterpriseServices.Thunk.Security.SuspendImpersonation() +81
System.EnterpriseServices.Platform.Initialize() +503
System.EnterpriseServices.ResourcePool..ctor(TransactionEndDelegate cb) +11
System.Data.SqlClient.ConnectionPool..ctor(DefaultPoolControl ctrl) +797
System.Data.SqlClient.PoolManager.FindOrCreatePool(DefaultPoolControl ctrl) +170
System.Data.SqlClient.SqlConnectionPoolManager.GetPooledConnection(SqlConnectionString options, Boolean& isInTransaction) +358
System.Data.SqlClient.SqlConnection.Open() +384
FzZp.WebForm1.zhichangwenzai() in c:\inetpub\wwwroot\fzzp\index.aspx.cs:261
FzZp.WebForm1.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\fzzp\index.aspx.cs:107
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +731
刚刚初学。。本来好好的网站,重起就变这样了,晕了。。。
源错误:
行 259: string str=System.Configuration.ConfigurationSettings.AppSettings["conn"].ToString();
行 260: SqlConnection cn=new SqlConnection(str);
行 261: cn.Open();
行 262: try
行 263: {
源文件: c:\inetpub\wwwroot\fzzp\index.aspx.cs 行: 261
堆栈跟踪:
[NullReferenceException: 未将对象引用设置到对象的实例。]
LoadLibraryW(UInt16* ) +0
System.EnterpriseServices.Thunk.Security.Init() +76
System.EnterpriseServices.Thunk.Security.SuspendImpersonation() +81
System.EnterpriseServices.Platform.Initialize() +503
System.EnterpriseServices.ResourcePool..ctor(TransactionEndDelegate cb) +11
System.Data.SqlClient.ConnectionPool..ctor(DefaultPoolControl ctrl) +797
System.Data.SqlClient.PoolManager.FindOrCreatePool(DefaultPoolControl ctrl) +170
System.Data.SqlClient.SqlConnectionPoolManager.GetPooledConnection(SqlConnectionString options, Boolean& isInTransaction) +358
System.Data.SqlClient.SqlConnection.Open() +384
FzZp.WebForm1.zhichangwenzai() in c:\inetpub\wwwroot\fzzp\index.aspx.cs:261
FzZp.WebForm1.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\fzzp\index.aspx.cs:107
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +731
刚刚初学。。本来好好的网站,重起就变这样了,晕了。。。