帮忙~~在线等~关于错误报告的~
新做了个程序,在本地运行的很好,上传却出现了错误。错误代码如下:
Server Error in '/' Application.
--------------------------------------------------------------------------------
The ConnectionString property has not been initialized.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: The ConnectionString property has not been initialized.
Source Error:
Line 91: conn = New sqlConnection(ConfigurationSettings.AppSettings("Êý¾Ý¿â"))
Line 92: comd = New sqlCommand(sql, conn)
Line 93: comd.Connection.Open()
Line 94: dr = comd.ExecuteReader
Line 95: If dr.Read Then AllRecord = dr(0)
Source File: d:\users\comtry\default.aspx Line: 93
Stack Trace:
[InvalidOperationException: The ConnectionString property has not been initialized.]
System.Data.SqlClient.SqlConnection.Open() +433
ASP.default_aspx.__Render__control1(HtmlTextWriter __output, Control parameterContainer) in d:\users\comtry\default.aspx:93
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +27
System.Web.UI.Control.Render(HtmlTextWriter writer) +7
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +241
System.Web.UI.Page.ProcessRequestMain() +1912
谢谢~~