Solve the problem of uploading ASP.NET programs to virtual hosts

  
                  I recently uploaded a new ASP.NET application to the virtual host for the company and found that this happens after uploading the program: Runtime Error

Explanation: An application error occurred on the server. The current custom error setting for this application prohibits remote viewing of application error details (for security reasons). But it can be viewed by a browser running on the local server computer. More information: To enable others to view the details of this particular error message on a remote computer, create a <customErrors> tag in the "web.config" configuration file located in the root of the current web application. You should then set the "mode" attribute of this <customErrors> tag to "Off".
<!-- Web.Config configuration file--><configuration>
<system.web>
<customErrors mode="Off"/>
</System.web>
</configuration>
Note: Custom error pages can be used by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to the URL of the custom error page. Replace the current error page you see.
<!-- Web.Config configuration file--><configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/> ;
</system.web>
</configuration> It turned out to be a problem with the ASP.NET version of the virtual host. The one that opened it for me was ASP.NET 1.1, and I used Is ASP.NET 2.0. Although the solution is simple, the process of finding a solution is hard! ! I hope that friends who encounter this kind of problem can solve the problem quickly.
Copyright © Windows knowledge All Rights Reserved