In my ASP. NET MVC Project, I have set up BundleConfig to include jquery, bootstrap, and modernizr scripts. Everything works well when running locally, with the path leading to the exact .js file.
However, when I publish the project to the hosting server, the scripts fail to load and I receive the following error message:
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
http://example.com/bundles/jquery?v=SomeStrangeIdHere
Why has the path changed after publishing? And how can I ensure that my scripts load properly?