[ASP.NET] Server Application Unavailable

xiaoxiao2021-03-06  66

Today encountered this problem at compile time ^ o ^ Server Error:! 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. .

Administrator Note:. An error message detailing the cause of this specific request failure can be found in the system event log of the web server Please review this log entry to discover what caused this error to occur such a problem can be encountered in general by the following. Method Solution: =============================================== == Information in this article applies to: Microsoft ASP.NET (provided with .NET Framework) Microsoft Internet Information Services 5.0 Microsoft Mobile Internet Toolkit (Mmit)

The release number of this article has been installed on the domain controller or the Microsoft .Net framework for the CHS315158 symptoms, if you try to run the ASP.NET application, the browser will display the following error message. :

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 be launched because the username and / or password supplied in the processModel section of the config file are invalid aspnet_wp.exe could not be started HRESULT for the failure:.. 80004005 This problem involves Internet Information Services (IIS) 5.0 Edition or higher. Cause By default, in order to provide a safer environment, ASP.NET runs its auxiliary process with a weak account (named ASPNET's local computer account). All user accounts on the domain controller or backup domain controller are domain accounts, not a local computer account. Therefore, ASPNET_WP.EXE failed to start because of the local account named "localmachinename / aspnet". To provide a valid user account on the domain controller, you must specify an explicit account in the section of the Machine.config file, or you must use the System account. Note: If you try to debug before trying to browse the page (click the Start button), the exact same problem will occur. Solution To resolve this issue, use one of the following methods: Create a weak account with the correct permissions, and then configure the section of the Machine.config file to use the account. In the section of the Machine.config file, set the username property to System. Configure the section of the Machine.config file to use the administrator account. Note: If the ASP.NET application is allowed to run as a System or administrator account, it will bring serious security issues. If any of the workarounds are used, the code running in the ASPNET_WP.EXE process will be able to access domain controllers and domain settings. The executable starting from the ASPNET_WP.EXE process is run in the same context, which can also access the domain controller.

Therefore, Microsoft recommends using the first variation. To use the first workaround solution, perform the following steps: Create a user account called ASPUSER on your computer, then add this account to the User Group.

Note: This account can also be used if the password of the ASPNET account created by the .NET framework is changed. You must know the password of this account because you need to add this password to the section in the later step. A user permissions "as a batch job login" to the ASPUSER or ASPNET account. Make sure this change is displayed in the Local Security Policy settings.

Note: To grant this account to user permissions "as a batch job login", you must authorize this user privilege in each of the following security policies (from the Control Panel "/" Administrative Tool ":

Domain Controller Security Policy Domain Security Policy Local Security Policy

Note: You must restart the server so that these changes take effect. Make sure that the ASPUSER or ASPNET account has access to the starting ASPNET_WP.EXE process and provides the entire directory and files necessary for the ASP.NET page. For additional information about which permissions must be granted to this account, click the article number below to view the article in the Microsoft Knowledge Base: 317012 Info: ASP.NET and request ID Open the Machine.config file. The path of this file is:% systemroot% / microsoft.net / framework / v1.0.3705 / config. In the section of the machine.config file, change the username and password properties to the name and password of the account created in step 1 . For example: username = "domainname / aspuser" password = "aspuserpassword" saves changes to the Machine.config file. State Microsoft has confirmed that this is an error existing in the Microsoft product listed in this article. Refer to additional information about ASP.NET security, click the article number below to view article in the Microsoft Knowledge Base: 306590 Info: ASP.NET Security Overview ============== ============================= ^ Remember to set the website folder to set the security attribute. The System account is fully controlled.

转载请注明原文地址:https://www.9cbs.com/read-88628.html

New Post(0)