The Abp project (.net) is deployed to the server IIS, and the page cannot be opened normally.

1. The current project is developed using abp, and the framework is version .net6.0. After the project development is completed, it will be released according to the normal process. Therefore, after the release is completed, there will be an executable application with the .exe suffix under the root directory.

 2. If you directly click on the .exe application, it is the output that can run normally.

3. But when deployed to iis, the following error occurs 

Error screenshot:

 Note: Deploying to iis requires installing the .net runtime. My current project is .net6, so I need to download and install the .net6 runtime  https://dotnet.microsoft.com/zh-cn/download/dotnet/6.0

 

 4. The reason for the above error

The server-side IIS has permission restrictions on calling exe programs, and the plug-in cannot be started normally. It is necessary to grant sufficient permissions to the application pool that calls the plug-in.

Note: If other errors such as 503 are reported on the page when iis is running, this is not the reason. For other solutions, you can also refer to this

https://blog.csdn.net/weixin_39237340/article/details/125235510 

https://blog.csdn.net/weixin_39237340/article/details/115023744 

https://blog.csdn.net/weixin_39237340/article/details/119325858 

 5. Solve:

IIS -> Application Pool -> Specific Application -> Right-click to select Advanced Settings -> Find Process Model -> Identity -> Select Custom Account -> Enter the password of the administrator account and restart the application to solve the problem.

5.1 Find the established website in iis, open the application pool, and change the CLR to unmanaged code to prevent it from being recycled.

 5.2 Select the current specific application again, right click, and open the advanced settings

5.3 Find the process model, identify

 5.4 Open the logo and select a custom account

 

5.5 Enter the password of the administrator account, click Confirm after entering. Since my current computer account is administrator, it will be this name. Here it is used according to the account currently used by the computer.

 5.6 Restart the application, select the top level, and click Restart.

 5.7 After the restart is complete, open the website. Find the deployed web page, click to browse

5.8 It can be found that it can prevent questions normally.

 

Reference article: https://blog.csdn.net/dongcai7633/article/details/101564692 

 

Guess you like

Origin blog.csdn.net/weixin_39237340/article/details/127218122