OleDbException, Unspecified Error

Problem

You get the following error when running your application:

System.Data.OleDb.OleDbException: Unspecified error

Solution

In the .NET Framework 1.0, ASP.NET applications use the TEMP folder designated by an environment variable to store temporary files.  In .NET Framework 1.1, ASP.NET applications use the profile folder for the local ASPNET account to write temporary files.  This profile folder is:

C:\Documents and Settings\ServerName\ASPNET\TEMP

The ASPNET account has permissions to write to this folder.

However, if the ASP.NET application uses impersonation, the account that is impersonated may not have permission to write temporary files to this folder.  Therefore, when the Web server is upgraded to .NET Framework 1.1, the application may fail with the error message that is described in the "Symptoms" section of this article.

See: http://support.microsoft.com/default.aspx?scid=kb;en-us;827190

See Also

Part IX:  Troubleshooting Applications

Application Will Not Run

Application Runs But No Data is Displayed

Application Error Messages