server Error

Corey Voggesser 0 Reputation points
2025-01-11T18:56:07.7966667+00:00

Server Error in '/' Application.


Runtime Error

__Description:__An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine. __Details:__To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".

|<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>| | -------- | |<!-- Web.Config Configuration File --> <configuration> <system.web> <customErrors mode="Off"/> </system.web> </configuration>|

__Notes:__The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.

|<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>| | -------- | |<!-- Web.Config Configuration File --> <configuration> <system.web> <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/> </system.web> </configuration>|

Microsoft Security Intune Configuration Manager Application
Windows for business Windows Server User experience Other
Windows for business Windows Client for IT Pros User experience Other
{count} votes

1 answer

Sort by: Most helpful
  1. Tasadduq Burney 8,956 Reputation points MVP Volunteer Moderator
    2025-01-13T10:18:57.3033333+00:00

    Hello Corey Voggesser!

    Welcome to Microsoft QnA! Hope you are doing well! 😊

    The error you're encountering typically occurs when the application settings prevent detailed error messages from being viewed remotely for security reasons. To troubleshoot this issue, you can modify the web.config file located in the root directory of your web application.

    To view detailed error messages remotely, you can change the <customErrors> tag in your web.config file as follows:

    
    <configuration>
    

    This will disable custom error pages and allow you to see the details of the error. However, be cautious when using this setting in a production environment, as it could expose sensitive information.

    If you'd prefer to show a custom error page instead of the default error page, you can use the defaultRedirect attribute like this:

    <configuration>
    

    This will show the custom error page when an error occurs remotely.

    Let me know if this helps or if you need further assistance! 😊

    P.S If I am able to help you, do mark it as accepted answer.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.