Asp.net "Server application is not available" Solution

  
                  

Server application not available The web application you are trying to access on this web server is currently unavailable. Please click the “Refresh” button in your web browser to retry your request. Administrator Notes: Error messages detailing the reason for this particular request failure can be found in the system event log of the web server. Check this log entry to find out what caused the error to occur.

The reason for this is probably that IIS installed after the .Net Framework is installed causes .Net to not be registered in IIS.

Looking for a long time on the Internet means running aspnet_regIIS /i from the .net command line tool (or in a directory like the following: C:\\WINDOWS\\Microsoft.NET\\Framework\\v1.1.4322 \\aspnet_regiis.exe -i), but I tried it many times, but later I found that I had to uninstall and install it again, and re-create it as an application, as follows:

From the .net command line tool Run aspnet_regIIS /u uninstall, then aspnet_regIIS /i install and then restart IIS, delete “ default application & rdquo;, and then re-create the site as an application.

In addition, it is possible that the ASPNET account does not have the permissions of the server directory specified by IIS. In the Explorer, find "Tools - Folder Options - View - Use Simple Folder Sharing (Recommended)", remove the previous tick, then right click on the server specified directory, Properties - Security - Add - Advanced - Find it now, add the ASPNET account and give it full access. After doing this, you will find that there is no such error, but if you access the database, you may be prompted that ASPNET has no access to the database. This prompt is much clearer, you can add the appropriate permissions to the account in the database.

Solution One Re-registers .Net 2.0: C:WINDOWSMicrosoft.NetFrameworkv2.0.50727as.Net_regiis.exe –i

Solution 2 New Application Pool: Steps to Create an Application Pool 1. Click “Start”, point to “Program", and then click “Control Panel”. 2. Double-click “Administrative Tools” and double-click “Inte.Net Information Service (IIS)”. 3. Right-click on “Application Pool”, point to “New”, and then click “Application Pool”. 4. Type AppPool1 in the “Application Pool ID” text box. 5. Click “OK”.

Assigning an application to an application pool 1. Click “Start”, point to “ Programs, and then 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. Select “AppPool1” in the "Application Pool" list box in the “Home Directory" tab, then click “OK".

Solution 3, modify the access permissions of the folder where the website directory is located:

Find the current website directory-> Right->Property->Security->Add->Advanced -> Find Now -> Select Users -> OK -> OK

Workaround: 1. Create a new application pool, point properties, identify, select the security account for the application pool, Local system, OK! 2. The permissions in the WEB folder properties are added to the NetWork Service account permissions. At this point, the website can run .NET programs normally

Copyright © Windows knowledge All Rights Reserved