Alibaba Cloud IIS website reports an error

Today, when the website of zsg (written in c#) was deployed to Alibaba Cloud, the homepage could not be opened, and I kept jumping to the error page. After reading the debugging error message, I suspected that there was a problem with the database connection because the homepage has a database query.
So I checked the configuration file Web.config and found that the connection address of the Oracle database was correct. I also suspected that there was a problem with the Oracle connection, so I downloaded the Microsoft.NET 4.0 control provided by Oracle (this method is recommended for database 11 and later), and the server is prompted to have the same or higher version of .NET installed during installation. , So I think this should not be the reason, and finally Baidu found the following solutions.

solution:

1. Open the iis manager.

2. Open the "Application Pool" and left-click the corresponding website application pool.

3. Find "Advanced Settings" in "Edit Application Pool" on the right

4. In the "Advanced Settings" dialog window, find "Load User Profile" in "Process Model"

5. Change the "Load User Configuration File" from "False" to "True" and confirm the save. Click the website "Restart" in the "Website".

Browse the website again, the problem is solved.

Guess you like

Origin blog.csdn.net/QRcode_Y/article/details/100537742