实战突击ASP.NET项目开发案例整合-21章 企业级进销存软件web版-ag
发表在ASP.NET图书答疑
2013-12-06
是否精华
是
否
版块置顶:
是
否
“/”应用程序中的服务器错误。
--------------------------------------------------------------------------------
未将对象引用设置到对象的实例。
说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
异常详细信息: System.NullReferenceException: 未将对象引用设置到对象的实例。
源错误:
行 12: get
行 13: {
行 14: return System.Configuration.ConfigurationManager.ConnectionStrings["MRErpConnectionString1"].ToString();
行 15: }
行 16: }
源文件: D:\Work\MRErp\MRErp.ServiceProvider\Dao\Common\ConnectionManager.cs 行: 14
堆栈跟踪:
[NullReferenceException: 未将对象引用设置到对象的实例。]
MRErp.ServiceProvider.Dao.ConnectionManager.get_ConnectionString() in D:\Work\MRErp\MRErp.ServiceProvider\Dao\Common\ConnectionManager.cs:14
MRErp.ServiceProvider.Dao.UserInfoDao..ctor() in D:\Work\MRErp\MRErp.ServiceProvider\Dao\UserInfoDao.cs:18
MRErp.ServiceProvider.Service.UserInfoService..ctor() in D:\Work\MRErp\MRErp.ServiceProvider\Service\UserInfoService.cs:46
MRErp.ServiceProvider.Service.UserInfoService.get_Instance() in D:\Work\MRErp\MRErp.ServiceProvider\Service\UserInfoService.cs:32
Login.btnLogin_Click(Object sender, EventArgs e) in d:\1asp\源代码-突击\21\MRErp\MRErp.StockManager\Login.aspx.cs:23
System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +115
System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +120
System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563
--------------------------------------------------------------------------------
版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.0.30319.1
--------------------------------------------------------------------------------
未将对象引用设置到对象的实例。
说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
异常详细信息: System.NullReferenceException: 未将对象引用设置到对象的实例。
源错误:
行 12: get
行 13: {
行 14: return System.Configuration.ConfigurationManager.ConnectionStrings["MRErpConnectionString1"].ToString();
行 15: }
行 16: }
源文件: D:\Work\MRErp\MRErp.ServiceProvider\Dao\Common\ConnectionManager.cs 行: 14
堆栈跟踪:
[NullReferenceException: 未将对象引用设置到对象的实例。]
MRErp.ServiceProvider.Dao.ConnectionManager.get_ConnectionString() in D:\Work\MRErp\MRErp.ServiceProvider\Dao\Common\ConnectionManager.cs:14
MRErp.ServiceProvider.Dao.UserInfoDao..ctor() in D:\Work\MRErp\MRErp.ServiceProvider\Dao\UserInfoDao.cs:18
MRErp.ServiceProvider.Service.UserInfoService..ctor() in D:\Work\MRErp\MRErp.ServiceProvider\Service\UserInfoService.cs:46
MRErp.ServiceProvider.Service.UserInfoService.get_Instance() in D:\Work\MRErp\MRErp.ServiceProvider\Service\UserInfoService.cs:32
Login.btnLogin_Click(Object sender, EventArgs e) in d:\1asp\源代码-突击\21\MRErp\MRErp.StockManager\Login.aspx.cs:23
System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +115
System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +120
System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563
--------------------------------------------------------------------------------
版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.0.30319.1