Home > Article > Backend Development > Solutions to common problems when deploying asp.net to IIS_Practical tips
This article mainly introduces in detail the solutions to common problems of deploying asp.net to IIS. It has certain reference value. Those who are interested in asp.net Friends, you can refer to
Today I was tinkering with umbraco. I got it all done locally, but when I put it on the server, an exception occurred. I searched a lot of information on the website and finally solved the problem.
The solution will be described below, and the specific problems will not be listed one by one;
1. The corresponding .net framework framework is not installed
Solution: Frameworks below .net 3.5 must be installed through [Turn on or off Windows functions].
Frameworks above 4.0 must be downloaded from Microsoft’s official website and then installed.
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 the 4.5 framework is also the following command, both 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. Permission issue with the directory where the website is located
Solution:
Right-click the website folder and select [Security], then click [Edit] 】–[Add]–[Advanced]–[Find Now] Find [NETWORK SERVICE] and then [OK]; then grant read, write, modify, etc. permissions to [NETWORK SERVICE]. If the website still cannot be displayed, then give [NETWORK SERVICE] 】Grant the highest authority. If it still doesn't work, add [everyone] and give it the highest permissions.
If after the above operations it still gets 404 or the website displays nothing, you can modify the [ISAPI and CGI display] settings of IIS and change the restrictions inside to allow. . As shown below
########## consistent. If an error is reported, generally check it in the above order and the problem will be solved. Remember to restart IIS after completing each step, and sometimes the problem will be solved. ######The above is the entire content of this article. I hope it will be helpful to everyone's learning. I also hope that everyone will support the PHP Chinese website. ############Related recommendations: ##################Explanation on reading and writing Config files in ASP.NET###### #########How ASP.NET implements Hadoop addition, deletion, modification and query############How does IIS implement the method of deploying asp.net mvc website######
The above is the detailed content of Solutions to common problems when deploying asp.net to IIS_Practical tips. For more information, please follow other related articles on the PHP Chinese website!