PRB: "Server Error in /ApplicationName Application" Error Message When an ASP.NET Application Uses Impersonation (827190)
The information in this article applies to:
- Microsoft ASP.NET (included with the .NET Framework 1.1)
SYMPTOMSWhen 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: - In Windows Explorer, locate the C:\Document settings\ServerName\ASPNET\local settings folder.
- Right-click the Temp folder.
- Click Properties, and then click
Security.
- Click Add, type
ServerName\ASPNET in the
Select Users or Groups box, and then click OK.
- Make sure that the
Full Control checkbox is selected, and then click OK.
STATUS This
behavior is by design.REFERENCES
For additional information, click the following article numbers to view the
articles in the Microsoft Knowledge Base: 306158
INFO: Implementing Impersonation in an ASP.NET Application
317012 INFO: Process and Request Identity in ASP.NET
323293 FIX: "Access Is Denied" Error Message When You Try to Access Indexing Service from ASP.NET with Impersonation Enabled
Modification Type: | Major | Last Reviewed: | 10/16/2006 |
---|
Keywords: | kberrmsg kbWebServer kbConfig kbprb KB827190 kbAudDeveloper |
---|
|