Article ID: 825738 - Last Review: May 18, 2007 - Revision: 3.5 "System.Data.OleDb.OleDbException" error when you run an ASP.NET Web applicationSYMPTOMSWhen you connect to a Microsoft Access database from a Microsoft ASP.NET
application, you receive the following error message: System.Data.OleDb.OleDbException: Unspecified
error CAUSEThe ASP.NET Web application that has the impersonation element set to
true in the Web.config file, and that has the authentication element set to
Windows in the Web.config file, runs under the
impersonated account. The code in the ASP.NET Web application connects to
an Access database. When the connection is made, the Microsoft Jet OLE DB
creates temporary files in the Temp folder in the following directory:
Document and Settings\ServerName\ASPNET\Local
settings where ServerName is the name of your server.If the impersonated user account does not have read/write permissions enabled in the Temp folder, you receive the error message that is mentioned in the "Symptoms" section. RESOLUTIONTo resolve this problem, enable read/write permissions
for the impersonated user account in the Temp folder. To do this, follow these steps:
STATUS This
behavior is by design. MORE INFORMATIONSteps to Reproduce the Behavior
REFERENCESFor more information about ASP.NET impersonation, visit the
following Microsoft Developer Network (MSDN) Web site: http://msdn2.microsoft.com/en-us/library/xh507fc5(vs.71).aspx
(http://msdn2.microsoft.com/en-us/library/xh507fc5(vs.71).aspx)
For more information, click the following article numbers to view the articles in the Microsoft Knowledge Base:
301195
(http://support.microsoft.com/kb/301195/
)
How to configure security for files and folders on a network (domain) in Windows 2000
316675
(http://support.microsoft.com/kb/316675/
)
Cannot connect to Access database from ASP.NET
| Article Translations
|
Back to the top
