ConnectionString 属性尚未初始化
ConnectionString 属性尚未初始化。说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
异常详细信息: System.Exception: ConnectionString 属性尚未初始化。
源错误:
行 37: catch (Exception ex)
行 38: {
行 39: throw new Exception(ex.Message);
行 40: }
行 41: }
源文件: D:\wwwroot\WorkStudy\WorkStudy.Data\NewsData.cs 行: 39
堆栈跟踪:
[Exception: ConnectionString 属性尚未初始化。]
WorkStudy.Data.NewsData.SearchInfomation(String sql) in D:\wwwroot\WorkStudy\WorkStudy.Data\NewsData.cs:39
WorkStudy.Data.NewsData.GetNewsListByKindId(Int32 kindid) in D:\wwwroot\WorkStudy\WorkStudy.Data\NewsData.cs:116
WorkStudy.Rules.NewsRules.GetNewsListByKindId(Int32 kindid) in D:\wwwroot\WorkStudy\WorkStudy.Rules\NewsRules.cs:67
index.BindJobNewsType() in d:\wwwroot\WorkStudy\WorkStudy.Web\index.aspx.cs:32
index.Page_Load(Object sender, EventArgs e) in d:\wwwroot\WorkStudy\WorkStudy.Web\index.aspx.cs:22
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +33
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061
--------------------编程问答--------------------
补充:.NET技术 , VC.NET