回複一篇文章的時候發現如下錯誤資訊,大家來挑挑刺
[SoapException: System.Web.Services.Protocols.SoapException: 伺服器無法處理請求。 ---> System.Data.SqlClient.SqlException: SQL Server 不存在或訪問被拒絕。
at System.Data.SqlClient.ConnectionPool.GetConnection(Boolean& isInTransaction)
at System.Data.SqlClient.SqlConnectionPoolManager.GetPooledConnection(SqlConnectionString options, Boolean& isInTransaction)
at System.Data.SqlClient.SqlConnection.Open()
at ASPHelper.SQLAccess.ExecuteScalar(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters)
at CSDNWebService.User.Login(String UserName, String Password)
--- 內部異常堆疊追蹤的結尾 ---]
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) +1489
System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) +217
CSDN.Comment.Components.UserWS.Login(String UserName, String Password) +64
CSDN.Comment.Components.PostComment.btnPost_Click(Object sender, EventArgs e) +79
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1277
我能看到的是:
1. 頁面提交的會回複被提交到某個web service,這個ws實現了提交任務.原來繞了這麼大一個圈子,算不算WS濫用?
2. web.config沒配置好,調試資訊不該對外.
CSDN是在走下坡路還是忙於出版賺錢?好象首頁新聞很久都不更新,首頁文章檔次也慘不忍睹.
遺憾啊.