解決Access出現的0x80004005問題建站知識
導讀:1建站知識這篇論壇文章著重介紹了Access數據庫出現0x80004005問題的解決方法,更多內容請參考下文: 項目做了三個月了,終于也差不多完成了,昨天交去測試,結果出網站建設多少錢網站seo優化。
這篇論壇文章著重介紹了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.Contro網站建設l.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 service, and when IIS or the service is running under the local system account, the TMP or TEMP system environment variable is used. When the Web services or Windows NT service are started using a user account, the TMP/TEMP user profile environment variables is used.RESOLUTION
聲明: 本文由我的SEOUC技術文章主頁發布于:2023-05-24 ,文章解決Access出現的0x80004005問題建站知識主要講述標簽,標題,解決Access出現的0x80004005問題建網站建設源碼以及服務器配置搭建相關技術文章。轉載請保留鏈接: http://www.bifwcx.com/article/web_6686.html