.NET MVC 500 error when publishing to production server

My MVC website works fine on my debugging computer when I press F5 in Visual Web Developper Express 2010. I published it a couple of times without any problems, but I’ve changed a lot lately and my last post didn’t work as expected.

In fact, the publication works fine and does not display a special message. But the problem is that when I connect to the address, I get an error 500. I google and add the necessary information web.config to get detailed information.

Here is the information I get:

HTTP Error 500.0 - Internal Server Error

The page cannot be displayed because an internal server error has occurred.

Module: AspNetInitializationExceptionModule

Notification: BeginRequest

Handler: ExtensionlessUrlHandler-Integrated-4.0

Error Code: 0x00000000

Can someone point me in the right direction to debug this? I can provide you more information about my application, if necessary!

Thanks!

+5
source share
1 answer

Ok, I found this myself using support and google.

  • The support service sends me a link on how to show more errors on the website.
  • Then I saw that my mistake was: "Access to path XXXX is denied." This was due to the ClientDependency framework and was trying to access a path that does not exist on the server
  • I found in google that this path is specified in the web.config file, so I am changing the path.
  • It didn’t work anymore, so I went to the server and changed the permission in this folder
  • It worked.

Hope this can help someone one day!

+6
source

All Articles