csdn blog功能最近更新的比较多,自然相应的也暴露出一些问题。在一次访问的时候,我得到了下面的抱错信息。感觉有几个地方应该做一些小小的处理,贴在这里,瑞江不要骂我啊
1 应该捕获connection timeout异常
2 所有系统异常应该跳转到特定的页面,以便隐藏系统信息
上面直接暴露了源程序的位置,操作系统,.net版本信息
3 不知道是否由于sql server是正版,连接数量有限制,我觉得应该自己实现连接池,最好不要有上限,但是有一个自动回收机制,当多余的连接空闲的时候,自动将超过上限的连接关闭。
4 很多时候连接池是不会饱和的,出现这种现象可能是由于某些访问产生了死锁,需要对sqlserver进行进一步的排查
Server Error in '/' Application.
--------------------------------------------------------------------------------
Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in
use and max pool size was reached.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more @R_138_4045@ion about the
error and where it originated in the code.
Exception Details: system.invalidOperationException: Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may
have occurred because all pooled connections were in use and max pool size was reached.
Source Error:
An unhandled exception was generated during the execution of the current web request. @R_138_4045@ion regarding the origin and location of the exception can be
identified using the exception stack trace below.
Stack Trace:
[InvalidOperationException: Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all
pooled connections were in use and max pool size was reached.]
System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +1184505
System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection,DbConnectionFactory connectionFactory) +105
System.Data.sqlClient.sqlConnection.open() +111
Dottext.Framework.Data.sqlHelper.ExecuteReader(String connectionString,CommandType commandType,String commandText,sqlParameter[] commandParameters) in
D:/CSDN Web Site/Csdn Blog/Src/Library/Data Providers/Dottext.sqlDataProvider/sqlHelper.cs:871
Dottext.Framework.Data.sqlDataProvider.GetPreferences(Int32 blogId) in D:/CSDN Web Site/Csdn Blog/Src/Library/Data
Providers/Dottext.sqlDataProvider/sqlDataProvider.cs:3939
Dottext.Framework.Components.Preferences.Get(Int32 blogId) +91
Dottext.Admin.Pages.AdminPage.get_Preferences() in D:/CSDN Web Site/Csdn Blog/Src/Library/Dottext.Admin/WebUI/AdminPage.cs:167
Dottext.Admin.Pages.Feedback.Page_Load(Object sender,EventArgs e) in D:/CSDN Web Site/Csdn Blog/Src/Web/writeblog_app.csdn.net/Feedback.aspx.cs:31
System.Web.UI.Control.OnLoad(EventArgs e) +99
Dottext.Admin.Pages.AdminPage.OnLoad(EventArgs e) in D:/CSDN Web Site/Csdn Blog/Src/Library/Dottext.Admin/WebUI/AdminPage.cs:74
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint,Boolean includeStagesAfterasyncPoint) +1061
--------------------------------------------------------------------------------
Version @R_138_4045@ion: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210
Trackback: http://tb.blog.csdn.net/TrackBack.aspx?PostId=1656030
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。