Article ID: 815171 - Last Review: December 3, 2007 - Revision: 2.6 HOW TO: Configure an ASP.NET Application to Use the Same Credentials as an ASP 3.0 ApplicationOn This PageSUMMARYThis step-by-step article describes how to configure ASP.NET
applications to use the same credentials as ASP 3.0 applications use. By
default, ASP.NET applications run in a different security context than ASP 3.0
applications:
Change the Security Context for Anonymous UsersBy default, anonymous requests that are handled by ASP.NET are run in the context of the local ASPNET user account ( or in the NetWorkService user account in ASP.NET 1.1 applications that run on IIS 6.0).This account behaves similarly to the IUSR_ComputerName account that IIS 5.0 uses for anonymous requests. You can grant anonymous ASP.NET requests access to the same resources that anonymous ASP 3.0 requests have access to. To do this, add the ASPNET user account ( or the NetWorkService user account in ASP.NET 1.1 applications that run on IIS 6.0) to all access control lists (ACLs) where the IUSR_ComputerName account appears. This may include the NTFS file system permissions and databases. Alternatively, you can force ASP.NET to use the IUSR_ComputerName account. To do this, disable automatic control of the IIS in the IUSR_ComputerName account. Put both the userName attribute and the password attribute in plain text in the Web.config file. Note Check to make sure that this meets the security requirements of your organization. To force ASP.NET to use the IUSR_ComputerName account, follow these steps:
Enable Impersonation for Authenticated UsersTo enable impersonation for authenticated users, three configuration elements in the <system.web> element of the Web.config file for the application must be changed. You must make these changes to mimic the behavior of an ASP 3.0 application that requires authentication and then requests resources by using the authenticated account of the user.
REFERENCES For more information about the <processModel> element, visit the following Microsoft Web site: <processModel> Elementhttp://msdn2.microsoft.com/en-us/library/7w2sway1(vs.71).aspx
(http://msdn2.microsoft.com/en-us/library/7w2sway1(vs.71).aspx)
For additional information,
click the following article numbers to view the articles in the Microsoft
Knowledge Base: 326355
(http://support.microsoft.com/kb/326355/EN-US/
)
HOW TO: Deploy an ASP.NET Web Application Using Xcopy
Deployment
326356
(http://support.microsoft.com/kb/326356/EN-US/
)
HOW TO: Deploy an ASP.NET Web Application Using the Copy Project Feature in Visual Studio .NET
| Article Translations
|
Back to the top
