How can you verify if you have any issues with your web config file.

Tevon2.0 1,106 Reputation points
2023-05-24T15:40:08.7833333+00:00

As web config files are very long I wanted to know how can you verify and track down if they is an error in the file.

SharePoint Server
SharePoint Server
A family of Microsoft on-premises document management and storage systems.
2,399 questions
Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,915 questions
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,626 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,972 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Ling Zhou_MSFT 19,945 Reputation points Microsoft Vendor
    2023-05-25T09:14:08.99+00:00

    Hi @Tevon2.0,

    Thank you for posting in the community.

    Per my knowledge, the web config files are configuration files and do not seem to be available for viewing error messages.

    In addition, only when the error occurs, we will see the error message on the web page, and we will be prompted how to view the error message. We can't track errors when they don't occur.


    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.

    0 comments No comments

  2. Limitless Technology 44,536 Reputation points
    2023-05-25T12:44:44.11+00:00

    Hi,

    I'd be happy to help you out with your question. Sorry for the inconvenience caused.

    Please refer to following ways to verify if you have any issues with your web.config file:

    • Use a text editor with syntax highlighting. A text editor with syntax highlighting can help you to identify errors in your web.config file. This is because the editor will highlight any errors in the file in a different color, making them easy to spot.
    • Use a web.config viewer. A web.config viewer is a tool that can help you to visualize your web.config file. This can be helpful for identifying errors and warnings in the file.

    Once you have identified an error in your web.config file, you can track it down by following these steps:

    1. Look for the line number of the error in the web.config validator report or the text editor with syntax highlighting.
    2. Open the web.config file in a text editor and go to the line number of the error.
    3. Look for the error in the web.config file.
    4. Fix the error and save the web.config file.

    Once you have fixed the error, you can restart your web server and your web application should start working again.

    Here are some additional tips for verifying and tracking down errors in web.config files:

    • Make sure that you are using the correct version of the web.config schema. The web.config schema is the document that defines the structure of a web.config file. You can find the latest version of the web.config schema on the Microsoft website.
    • Make sure that you are using a valid XML editor. A valid XML editor is an editor that can correctly display and edit XML files.
    • Make sure that you are using a web.config viewer that is compatible with your version of .NET.
    • Use a web.config validator that is compatible with your version of .NET.
    • Use a text editor with syntax highlighting that is compatible with your version of .NET.

    By following these tips, you can help to ensure that your web.config files are free of errors.

    For more Information, please refer to following resource :-

    Web.config file has incorrect settings for the requestFiltering element (SharePoint Server) - https://zcusa.951200.xyz/sharepoint/technical-reference/web-config-file-has-incorrect-settings-for-the-requestfiltering-element

    If you have any other questions or need assistance with anything, please don't hesitate to let me know. I'm here to help.

    If the reply was helpful, please don’t forget to upvote or accept as answer, thank you.

    0 comments No comments

  3. Isaac Fernandes, Denver 0 Reputation points
    2024-12-14T12:08:58.09+00:00
    <!-- Web.Config Configuration File -->
    
    <configuration>
        <system.web>
            <customErrors mode="Off"/>
        </system.web>
    </configuration>
    
    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.