The server application is unavailable on the. NET Website in IIS.

Source: Internet
Author: User
Tags hosting 0x80070005
Cause
If you try to use windowsserver2003cd to install Windows Server 2003 Service Pack 2 (SP 2) and run the local upgrade as an existing Windows Server 2003 installation before running the ASP. NET 2.0 APPLICATION Program This problem occurs.

When you perform an on-site upgrade, ASP. NET uses Microsoft Internet Information Services (IIS) metadatabase to reset permissions and other folders during the upgrade. Therefore, the Custom Service account does not have permission to access these folders and receives the error message described in the "symptoms" section.

Note that an on-site upgrade type is also called "repair installation ".
Error: 0x80070005 Access Denied

The server application is unavailable.
The Web application you are attempting to access on this web server is currently unavailable. Please click "refresh" in the web browser to try your request again.

Administrator Note: you can find the error details for the specific request failure cause in the system event log of the Web server. Check this log item to find out the cause of this error.

.

I have checked that the IIS configuration is normal. Like on 213, the runtime is Framework 2.0, and the extension service is enabled. as a result, Google "server applications are not available" provides the following solutions:

1:
In. NET 2.0 and 1.1, the error "server application unavailable" occurs.
In fact, the process pool calls conflict. If the two applications accessed are 2.0 and 1.1 respectively, and they share a process pool,
If IIS cannot parse two versions at the same time, the above error will occur.

Solution:
Modify one of the Process pools. For example, change the process pool of the 2.0 application to asp. NET 2.0.

2:
Re-register IIS. Run aspnet_regiis.exe in net \ framework \ v2.0.50727. re-register. Net aspnet_regiis.exe-u, uninstall aspnet_regiis.exe-I, and reinstall the server.

Follow the two methods below to configure and run the program, but the same error still occurs, depressing.
Continue searching. Some people will prompt you to "view Event Viewer". So I went to the viewer and found the following two error messages:
1: failed to execute the request because the application domain cannot be created. Error: 0x80070005 Access denied.
2: failed to initialize appdomain:/lm/w3svc/1635210705/root
Exception: system. Io. fileloadexception
Message: failed to Load file or assembly "system. Web, version = 2.0.0.0, culture = neutral, publickeytoken = b03f5f7f11d50a3a" or one of its dependencies. Access denied.
Stacktrace: In system. reflection. Assembly. nload (assemblyname filename, string codebase, evidence assemblysecurity, assembly locationhint, stackcrawlmark & stackmark, Boolean throwonfilenotfound, Boolean forintrospection)
In system. reflection. Assembly. internalload (assemblyname assemblyref, evidence assemblysecurity, stackcrawlmark & stackmark, Boolean forintrospection)
In system. reflection. Assembly. internalload (string assemblystring, evidence assemblysecurity, stackcrawlmark & stackmark, Boolean forintrospection)
In system. activator. createinstance (string assemblyname, string typename, Boolean ignorecase, bindingflags bindingattr, binder, object [] ARGs, cultureinfo culture, object [] objects, evidence securityinfo, stackcrawlmark & stackmark)
In system. activator. createinstance (string assemblyname, string typename)
In system. appdomain. createinstance (string assemblyname, string typename)
In system. appdomain. createinstance (string assemblyname, string typename)
In system. Web. Hosting. applicationmanager. createappdomainwithhostingenvironment (string appid, iapplicationhost apphost, hostingenvironmentparameters hostingparameters)
In system. Web. Hosting. applicationmanager. createappdomainwithhostingenvironmentandreporterrors (string appid, iapplicationhost apphost, hostingenvironmentparameters hostingparameters)

So Google again "failed to execute the request because the application domain cannot be created. Error: 0x80070005 Access denied. ", Found the solution:
1:
After IIS 2.0 is installed, an ASP. NET label is added to the attribute settings of the virtual directory of IIS, where the runtime is adjusted to 2.0. The default Runtime is 1.1.

2:
This is a permission issue,
First, check the properties of the application pool to see the identity of the user that runs the application pool. Generally, it is the network service and then ensure that the user is correct. the Directory of Net Framework 2.0 has access permission. In fact, it should be. The directory is systemroot: \ windows \ Microsoft. NET \ frameworks \ 2.0.xxxx

If both of the above are correct, use the following method:

Solution
To solve this problem, configure a Custom Service account by using the ASPNET _ regiis.exe utility. Run the ASPNET _ regiis.exe utility from ASP. NET 2.0 at the command prompt to switch-: Ga-
Aspnet_regiis? Ga accountname
Note that for this command, accountname indicates a Custom Service account.

For example, you can run the following command to grant permissions to the nt authority \ Network Service account:
Aspnet_regiis-Ga "nt authority \ Network Service"

Add the network_service user permission to the web directory.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.