PRB: "Server Error in /ApplicationName Application" Error Message When an ASP.NET Application Uses Impersonation
On This PageSYMPTOMSWhen you upgrade the Microsoft .NET Framework version 1.0 to version
1.1, and then you run a Microsoft ASP.NET application with an impersonated account to access
the Microsoft Access Database, you may receive the following error message:
Server Error in '/ApplicationName' Application. Unspecified error Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.OleDb.OleDbException: Unspecified error CAUSEIn the .NET Framework 1.0, ASP.NET applications use the TEMP
folder that is designated by the environment variables 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 the permissions 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. RESOLUTIONTo resolve this problem, assign read and write permissions
for the impersonated account on the C:\Documents and
Settings\ServerName\ASPNET folder. To do
this, follow these steps:
STATUS This
behavior is by design. MORE INFORMATIONCreate a New ASP.NET Web Application
Set Impersonation
Run the ASP.NET 1.0 ApplicationOn the Build menu, click Start.Upgrade from .NET Framework 1.0 to .NET Framework 1.1To download and to install the .NET Framework 1.1, visit the following Microsoft Web site:http://msdn2.microsoft.com/en-us/netframework/aa731542.aspx (http://msdn2.microsoft.com/en-us/netframework/aa731542.aspx) Run the ASP.NET 1.1 ApplicationTo run the WebApp1 application, type the following URL in Microsoft Internet Explorer:http://locahost/WebApp1/WebForm1.aspx You may notice the error message that is mentioned in the "Symptoms" section of this
article.REFERENCES
For additional information, click the following article numbers to view the
articles in the Microsoft Knowledge Base: 306158 (http://support.microsoft.com/kb/306158/)
INFO: Implementing Impersonation in an ASP.NET Application
317012 (http://support.microsoft.com/kb/317012/) INFO: Process and Request Identity in ASP.NET
323293 (http://support.microsoft.com/kb/323293/) FIX: "Access Is Denied" Error Message When You Try to Access Indexing Service from ASP.NET with Impersonation Enabled
| Article Translations
|

Back to the top
