网站错误记录:A transport-level error has occurred when sending the request to the server.
2014-07-22 16:47
627 查看
今天查看公司项目的日志文件,发现有这个错误:A transport-level error has occurred when sending the request to the server.
感觉比较怪异,百度了下相关的问题的解决方法。
原文链接:http://blog.csdn.net/luckeryin/article/details/4337457
发现是数据库的问题。
这个情况是通常是因为SQL Server遇到了一些Issues而不得不去刷新所有的连接,但是ADO.net仍然认为这些连接是有效的,而其实,可能在使用的过程中,某些连接早已失效。
看来问题出在SQL的连接上了.而且是过期的连接影响了正常的刷新.知道了问题的根源,解决它就是不问题了.
通过调用连接对象的ClearPoool方法来清除这些连接池是失效的连接,也可以调用SqlConnection.ClearAllPools()方法来清理所有连接的连接池.
问题就这样迎刃而解了.
感觉比较怪异,百度了下相关的问题的解决方法。
原文链接:http://blog.csdn.net/luckeryin/article/details/4337457
发现是数据库的问题。
这个情况是通常是因为SQL Server遇到了一些Issues而不得不去刷新所有的连接,但是ADO.net仍然认为这些连接是有效的,而其实,可能在使用的过程中,某些连接早已失效。
看来问题出在SQL的连接上了.而且是过期的连接影响了正常的刷新.知道了问题的根源,解决它就是不问题了.
通过调用连接对象的ClearPoool方法来清除这些连接池是失效的连接,也可以调用SqlConnection.ClearAllPools()方法来清理所有连接的连接池.
问题就这样迎刃而解了.
相关文章推荐
- C#恢复数据库之后,出现错误transport-level error has occurred when sending the request to the server
- "A transport-level error has occurred when sending the request to the server"的解决办法
- "A transport-level error has occurred when sending the request to the server"的解决办法
- "A transport-level error has occurred when sending the request to the server"的解决办法
- "A transport-level error has occurred when sending the request to the server,指定的网络名不在可用"的解决办法
- 解决IIS7中出现An error occurred on the server when processing the URL错误提示的方法
- 解决IIS7中出现An error occurred on the server when processing the URL错误提示的方法
- 解决IIS7中出现An error occurred on the server when processing the URL错误提示的方法
- IIS7.0 调试ASP程序时候,程序有错误只提示"An error occurred on the server when processing the URL.Please contact the system administrator",看不到详细的提示的解决办法
- 1.flex工程报错出现每次打开窗口的时候都会弹出一个窗口提示错误,提示“a problem has occurred when opening project "your project name",try to restart the applicat
- [ASP.NET] - 提示错误:The server has encountered an error while loading an application during the processing your request
- [已解决]在VMware-server for linux 下装centos错误:an error has occurred. - no valid devices were found on which to create new file system
- 解决IIS7中出现An error occurred on the server when processing the URL错误提示的方法
- An error has occurred while establishing a connection to the server处理方法
- iis7错误提示An error occurred on the server when processing the URL
- 解决编译器“The connection to adb is down, and a severe error has occured.ADB server didn't ACK”提示错误方法
- 解决IIS7中出现An error occurred on the server when processing the URL错误提示的方法
- 解决IIS7中出现An error occurred on the server when processing the URL错误提示的方法
- 网站出现An error occurred on the server when processing the URL. Please contact the system administrator