 |
|
|
Access数据库出现0x80004005问题的解决方法
|
|
|
|
|
Access数据库出现0x80004005问题的解决方法
发布者:
rain 发布日期:2008/9/21
浏览次数:2256
次
|
|
|
|
|
文章着重介绍了Access数据库出现0x80004005问题的解决方法,更多内容请参考下文: [OleDbException (0x80004005): Unspecified error] System.Data.OleDb.OleDbConnection.ProcessResults(Int32 hr) +20 System.Data.OleDb.OleDbConnection.InitializeProvider() +57 System.Data.OleDb.OleDbConnection.Open() +203 Webb.WAVE.Controls.OleDBManager.FillDataTable(DataTable i_dataTable) +85 Webb.WAVE.Controls.WaveExpire.LoadExpireDateForClient(DataTable i_table, Int64 i_clientID) +189 Webb.WAVE.inc_Client_AccessManage.LoadExpireDate(String i_sortKey) +99 Webb.WAVE.inc_Client_AccessManage.Page_Load(Object sender, EventArgs e) +85 System.Web.UI.Control.OnLoad(EventArgs e) +67 System.Web.UI.Control.LoadRecursive() +35 System.Web.UI.Control.LoadRecursive() +98 System.Web.UI.Control.LoadRecursive() +98 System.Web.UI.Page.ProcessRequestMain() +750 说明一下:这个错误总会在运行一段时间后出现,而等一会工(不定多少时间),或者重新启动IIS或者服务器,这个问题就解决了。而再运行一会又会(时间越来越短)出现这个问题。 而我在自己的电脑是运行时,基本上没出现这样的问题,于是反复的查找原因,不得其解,在MSDN里找到了三篇相关的文章:其中这一篇还有点道理: SYMPTOMS When trying to connect to an Access .mdb file, an ODBC error is returned stating "Disk or Network Error". The Microsoft OLE DB Provider for the Microsoft Jet database engine may also return an "Unspecified error" (error code = 0x80004005) message. The problem can occur only when the data source is opened under the Microsoft Internet Information Server (IIS) or a Microsoft Windows NT service but not under a logged-on user account.CAUSE Jet creates a temporary file when the engine is started. In doing so, it first checks the TMP environment variable and uses that path to define where the temporary file is created. If it doesn't see a TMP environment variable, it looks for the TEMP environment variable. If TEMP is not defined, it then uses the Windows folder (\WINDOWS or \WINNT). If TMP/TEMP is defined but points to a nonexistent folder, the error occurs. Moreover, when opening the Access database through IIS or a Windows NT servi
|
常见问题 | 我要留言 | 添加到收藏 |
|
|
|
|
|
|