ASP. NET solves the problem of "server application unavailable" when using IIS to set up a website. asp. netiis
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: error messages that detail the cause of the specific request failure can be found in the system event log of the Web server. Check this log item to find out the cause of this error.
This is probably because IIS installed after. Net Framework is installed, and. Net is not registered in IIS.
I have been searching for it online for a long time. run aspnet_regIIS/I in the. net command line tool (or in a directory similar to the following: C: \ WINDOWS \ Microsoft. NET \ Framework \ v1.1.4322 \ aspnet_regiis.exe-I), but I tried many times, but later I found that I had to uninstall, install, and recreate the application as follows:
Run aspnet_regIIS/u In the. net command line tool to uninstall it, And then install aspnet_regIIS/I.
Restart IIS, delete the "Default Application", and recreate the site as an application.
In addition, it may be that the ASPNET account does not have the permission for the server directory specified by IIS. In resource manager, find "tools-Folder Options-View-use simple folder sharing (recommended)", remove the preceding check box, and right-click the directory specified on the server, property-security-add-advanced-search now, add the account ASPNET, and grant it full access permissions. After doing so, you will find that the error does not exist. However, if you access the database, you may be prompted that the account ASPNET has no permission to access the database. This prompt is much clearer. You can add the corresponding permissions to the account in the database.
Solution 1: re-register. Net 2.0/3.5/4.0:
C: WINDOWSMicrosoft.NetFrameworkv2.0.50727as.Net_regiis.exe-I |
Solution 2: Create an application pool:
To create an application pool
1. Click Start, point to program, and click Control Panel ".
2. Double-click "Administrative Tools" and double-click "Inte. Net Information Service (IIS )".
3. Right-click application pool, point to new, and click application pool ".
4. Type AppPool1 in the application pool ID text box.
5. Click OK ".
Allocate applications to the application pool
1. Click Start, point to program, and click Control Panel ".
2. Double-click "Administrative Tools" and double-click "Inte. Net Information Service (IIS )".
3. Double-click "Web site ".
4. Double-click "Default Web site ".
5. Right-click DebugApp1 and click Properties ".
6. In the "main directory" tab, select "AppPool1" in the "application pool" list box, and click "OK ".
Solution 3: Modify the access permission of the folder where the website directory is located:
Right-click the current website directory and choose Properties> Security> Add> advanced> Search now> select Users user> OK
Solution:
1. Create an application pool, click Properties, ID, and select the Security Account of the application pool, local system, OK!
2. Add the NetWork Service account permission to the permissions in the WEB Folder attribute.
Now, the website can run the. NET program normally.