error page "Server Error in '/' Application

Tevon2.0 1,106 Reputation points
2022-12-19T16:11:09.25+00:00

When attempting to create a new site collection in my production server via central admin I landed on an error page "Server Error in '/' Application."

Please explain how this error message can be resolved. I'm unsure of where/how to find the "<customErrors> tag within a "web.config" configuration file". Error message below shown. Screenshots appreciated if possible.

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.

Details: To enable the details of this specific error message to be viewable on the local server machine, 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 "RemoteOnly". To enable the details to be viewable on remote machines, please set "mode" to "Off".

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

<configuration>
<system.web>
<customErrors mode="RemoteOnly"/>
</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="On" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>

SharePoint Server Development
SharePoint Server Development
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Development: The process of researching, productizing, and refining new or existing technologies.
1,622 questions
SharePoint Server Management
SharePoint Server Management
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Management: The act or process of organizing, handling, directing or controlling something.
2,968 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. AllenXu-MSFT 21,286 Reputation points Microsoft Vendor
    2022-12-20T02:05:07.897+00:00

    Hi @Tevon2.0 ,

    1. Go to IIS Manager > Right click "SharePoint Central Administration" > Select "Explore"
      272247-image.png
    2. Open "web.config" with Notepad.
      272265-image.png
    3. Find <customErrors> tag using CTRL+F and set its "mode" attribute to "RemoteOnly".
      272195-image.png
    4. Reopen CA and you will see the details of this error.

    ----------

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. Wilson D 0 Reputation points
    2023-02-02T08:38:30.2566667+00:00

    The “Server error in '/' application” can occur if there is a typo in the file extension, for example a file or URL that references test. htl instead of test. html.

    0 comments No comments

  3. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

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.