Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the IIS deployment ASP.NET Core projects and frequently asked questions

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

IIS deployment of ASP.NET Core projects and common problems, I believe that many inexperienced people do not know what to do, so this article summarizes the causes of the problem and solutions, through this article I hope you can solve this problem.

Preparation for deployment 1. The server enables the function of adding IIS

1.1. Click windows to search for "enable or disable windows feature"

1.2 choose to add some functions of IIS, as shown in the following figure

two。 Go to IIS and add the published website files

3. Set up the application pool without managed code

4. Run your website

4.1. Under the default operation, if there is a 500.19 problem, it means that the website directory permissions are insufficient. You need to add users to the website and set all permissions.

4.2. Open the file for the site, add user settings permissions, and then refresh the site

5. In accordance with the above operations, it can generally operate normally. If different exceptions occur, the following is summarized:

Solution: open the applicationHost.config file in the C:\ Windows\ System32\ inetsrv\ config path. Check to see if aspNetCore exists under the system.webServer node, as shown in the following figure:

If it does not exist, it may be due to the fact that the .net Core runtime runtime is not installed on this machine. Log in to the website at this time, and install the corresponding Runtime package, https://dotnet.microsoft.com/download,.

After the installation is completed, the node will be at the bottom by default. If it is not added after the installation, add it manually under the node:

Notes and methods:

1. Before deploying IIS, you need to install IIS-related features, and then install the corresponding. Net Core runtime, SDK and the corresponding Runtime runtime.

two。 If the error still occurs, open the applicationHost.config file under the C:\ Windows\ System32\ inetsrv\ config path to see if the relevant node already exists.

3. According to the windows event error log, find out which node the error occurred on

4. Check the relevant configuration of We.Config in the website directory, or turn on the file log output

After reading the above, have you mastered how IIS deploys ASP.NET Core projects and frequently asked questions? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report