解決Access出現(xiàn)的0x80004005問題

字號:

現(xiàn)了下面這樣的問題:
    [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
    說明一下:這個錯誤總會在運行一段時間后出現(xiàn),而等一會工(不定多少時間),或者重新啟動IIS或者服務(wù)器,這個問題就解決了。而再運行一會又會(時間越來越短)出現(xiàn)這個問題。
    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