Asp.net| Control Symptoms
After you install Microsoft Visual Studio. NET or the Microsoft. NET Framework on a domain controller or backup domain controller, the browser displays the following error message if you try to run the asp.net application:
Server Application Unavailable
The Web application you are attempting to access on this Web server is currently unavailable.
Please hit the ' Refresh ' button in your Web browser to retry your request.
In addition, the following events are logged in the System application event log:
aspnet_wp.exe could not being launched because the username and/or password supplied in the ProcessModel g file are invalid.
aspnet_wp.exe could not to be started.
HRESULT for the failure:80004005
This issue relates to Internet information Services (IIS) version 5.0 or later.
Reason
By default, in order to provide a more secure environment, ASP.net runs its worker process (aspnet_wp.exe) with a weaker account (the local computer account named ASPNET). On a domain controller or backup domain controller, all user accounts are domain accounts, not local computer accounts. Therefore, aspnet_wp.exe cannot start because it cannot find a local account named "Localmachinename\aspnet". To provide a valid user account on a domain controller, you must specify an explicit account in the <processModel> section of the Machine.config file, or you must use the SYSTEM account.
Note: If you try to debug before you try to browse the page (click the Start button), you will also experience this problem.
Solution
To resolve this issue, use one of the following methods:
Create a weak account with the correct permissions, and then configure the <processModel> portion of the Machine.config file to use the account.
In the <processModel> section of the Machine.config file, set the UserName property to SYSTEM.
Configure the <processModel> portion of the Machine.config file to use the Administrator account.
Note: In ASP.net 1.1, the process of the ASPNET is identified as IWAM_machinename, so this problem does not exist.
Note: If you allow ASP.net applications to run as SYSTEM or administrator accounts, there are serious security issues. If you use any of these workarounds, code that runs in the Aspnet_wp.exe process will have access to domain controllers and domain settings. Executables that are started from the Aspnet_wp.exe process run in the same context, and they also have access to domain controllers.
Therefore, Microsoft recommends the use of the first workaround. To use the first workaround, follow these steps:
Create a user account named ASPUSER on your computer, and then add this account to the user group.
Note: You can also use this account if you change the password for the ASPNET account created by the. NET Framework. You must know the password for this account because you need to add the password to the <processModel> section later in this step.
Grant the ASPUSER or ASPNET account the "Log on as a batch job" user right. Make sure that this change appears in the Local Security policy setting.
Note: To grant this account the "Log on as a batch job" user right, you may have to grant this user right in each of the following security policies (starting from the Control Panel/Administrative Tools):
Domain Controller Security Policy
Domain Security Policy
Local Security Policy
Note: You may have to restart the server for these changes to take effect.
Ensure that the ASPUSER or ASPNET account has access to all directories and files necessary to start the Aspnet_wp.exe process and provide services for the ASP.net page. For additional information about the permissions that must be granted to this account, click the following article number to view the article in the Microsoft Knowledge Base:
Process and request identification in 317012 INFO:ASP.NET
Open the Machine.config file. The path to the file is:%systemroot%\microsoft.net\framework\v1.0.3705\config.
In the <processModel> section of the Machine.config file, change the UserName and Password properties to the name and password of the account that you created in the first step. For example:
Username= "DomainName\ASPUSER" password= "ASPUSERpassword"
Save the changes you made to the Machine.config file.
State
Microsoft has confirmed that this is an error in the Microsoft products listed at the beginning of this article. This error is in ASP. NET (included in the. NET Framework) was corrected in version 1.1.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.