skip to Main Content

After publishing my asp mvc app to plesk hosting I have 500 error. When I run it locally all works fine.

  1. I checked my connection string. This connection string is correct and uses for another apps that hosts on that server.

  2. Tried to turn on debug and view detailed error message.
    add such code to my web.config and turn off custom errors on server with turn on debug mode also on server (Plesk)

nothing helps…. (code with configs bellow)

  1. Checked all permissions for files on server.
<system.web>
  <customErrors mode="Off"/>
</system.web>
<system.webServer>
    <httpErrors errorMode="Detailed" />
    <asp scriptErrorSentToBrowser="true" />
</system.webServer>
routes.MapRoute(
                "Test",
                "{controller}/{action}/{GUID}/{questionNumber}",
                new { controller = "Test", action = "Index", GUID = "", questionNumber = "" }  // Parameter defaults
            );

How to resolve it? 🙁

2

Answers


  1. Chosen as BEST ANSWER

    So, the problem was in controller name. Just was renamed TestController to ExamController


  2. For how to find the 500 error which is related with aps.net application in the event viewer, you could refer to below steps:

    1. Go to event viewer
      enter image description here
    2. Find windows logs-> application

    enter image description here

    1. Click the filter current log in the right window and select asp.net 2.0, 4.0.
      enter image description here
    2. Then it will show the details error content in the event viewer
      enter image description here
    3. If you want to find the application pool related issue, you could go to the system.
      enter image description here
    4. Click the filter current log in right window and select WAS.
      enter image description here
    5. Then you could find the error which is related to the application pool.
      enter image description here
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search