Runtime error on server on published website

deskcheck1-0579 411 Reputation points
2024-05-03T20:06:43.14+00:00

After publishing my website using Web Deploy I get this error message: "Server Error in '/' Application." My web.config file already contains this tag:

How can I view where the error is coming from? There is no error when I run it in Visual Studio on my development machine. Error only shows on the server.

Appreciate any help.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
9,002 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sreeju Nair 12,666 Reputation points
    2024-05-04T07:52:07.65+00:00

    Hi @deskcheck1-0579,

    to see the error, set the following.

    <system.web>
       <customErrors mode="Off"/> 
    </system.web>
    

    setting customErrors to RemoteOnly indicates, the actual error only displays locally, means when you browse the site with in the server, you will see the error. if you switch off the customErrors, you will see the actual error always.

    Hope this helps

    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.