当前位置: 代码迷 >> ASP.NET >> OleDbException (0x80004005): 未指定的异常
  详细解决方案

OleDbException (0x80004005): 未指定的异常

热度:3748   发布时间:2013-02-25 00:00:00.0
OleDbException (0x80004005): 未指定的错误
网站本地调试都不会出现这个问题!传到服务器上之后浏览一会就会出现这样的问题!然后刷新一下又可以,再浏览一会又出现!
百度了下发现不少人也出现过这样的问题,但答案都千篇一律,没有效果!
堆栈跟踪:

C# code
[OleDbException (0x80004005): 未指定的错误]   System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString constr, OleDbConnection connection) +968349   System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject) +86   System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup) +29   System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +4862012   System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +117   System.Data.OleDb.OleDbConnection.Open() +40   DAL.sqlHelper.ExecuteReader(String cn, String cmdText) +200   DAL.QTshowServer.NowLocation(Int32 loca, Int32 tcid) +361   BLL.QTshow.NowLocation(Int32 loca, Int32 tcid) +51   products.Page_Load(Object sender, EventArgs e) +947   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35   System.Web.UI.Control.OnLoad(EventArgs e) +99   System.Web.UI.Control.LoadRecursive() +50   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


上面的堆栈跟踪看不太懂,不知道是哪里错误了,不过我想应该在数据库方面,浏览页面也就是查询数据库的时候,请问有什么好的解决方法吗?

------解决方案--------------------------------------------------------
这个上面好像有你想要的 http://topic.csdn.net/u/20071022/10/c3efc6ec-f21d-4a0b-a223-8ad82cd286f4
------解决方案--------------------------------------------------------
及时释放资源,关闭连接,数据库操作类
并发访问
操作权限

------解决方案--------------------------------------------------------
有些连接没有关闭
  相关解决方案