asp.net Solutions to common problems in deploying to IIS

Time:2020-10-11

Today, the umbraco was set up locally. However, there was an exception when it was put into the server. The website found a lot of information, and finally solved the problem.

Let’s talk about the solutions below, and we will not list the specific problems one by one;

1. The corresponding. Net framework framework is not installed

Solution:The framework below. Net 3.5 should be installed through [open or close windows function].

 

The framework above 4.0 should be downloaded and installed through the official website of Microsoft.

2. IIS failed to register successfully

Solution:

In the CMD form, run the following command:

. net 2.0 framework registration:

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i

. net 4.0 registration (the registration of 4.5 framework is also the following command, 4.0 and 4.5 frameworks are displayed as 4.0 in IIS)

C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -i

3. Website directory permission problem

Solution:

Right click the website folder, select security, and then click Edit – add – Advanced – search now to find network service, and then click OK. After that, give the network service read, write and modify permissions. If the website still can’t be displayed, give the network service the highest permissions. If it is complete or not, add “everyone” and give it the highest permission.

If the above operation is still 404 or the website does not display anything, you can modify the ISAPI and CGI display settings of IIS and change the restriction to allow. As shown in the figure below

asp.net To deploy a website, you should first ensure that IIS is installed correctly, and then ensure that the application pool selected by the website is consistent with the. Net version number of the website. If an error is reported, check it in the order above, and the problem will be solved. When you finish each step, remember to restart IIS. Sometimes the problem will be solved.

The above is the whole content of this article, I hope to help you in your study, and I hope you can support developeppaer more.