Thomas Teilmann Thomas Teilmann - 2 months ago 11
ASP.NET (C#) Question

Failed to load all resources - error 500

I have a problem where i get this error in the developer console, for all css, image and js files:

Failed to load resource: the server responded with a status of 500 (Internal Server Error)

The file name and path looks fine and it's happening for ALL resources. The project is an ASP.NET MVC project, which my co-worker can build and run just fine, without these errors. The project is located in my usual projects folder and i have never experienced this problem before. I also checked the folder permissions, and i am completely clueless as to why this is happening.

The resources are bundled, but if i create the links to the resources manually, it throws the same errors in the developer console.

Have anyone ever tried something like this before?

Log: Log

Tracelog: Tracelog


public class BundleConfig
// For more information on bundling, visit
public static void RegisterBundles(BundleCollection bundles)
bundles.Add(new ScriptBundle("~/bundles/jquery").Include(

bundles.Add(new ScriptBundle("~/bundles/language").Include(

bundles.Add(new StyleBundle("~/Content/css").Include(

bundles.Add(new ScriptBundle("~/bundles/thermostat").Include(

bundles.Add(new ScriptBundle("~/bundles/general").Include(

bundles.Add(new ScriptBundle("~/bundles/energy").Include(


bundles.Add(new ScriptBundle("~/bundles/useraccount").Include(
bundles.Add(new ScriptBundle("~/bundles/groups").Include(
bundles.Add(new ScriptBundle("~/bundles/login").Include(



According to the TraceLog file that you provided you have a problem in your web.config file. An exception message is C:\Users\teilmann\source\Nuheat\oj.web\oj.web.main\web.config ( 112) :Cannot add duplicate collection entry of type "mimeMap" with unique key attribute "fileExtension" set to ".json"

Most likely you have a MIME type defined for JSON files both on the WebSite and application level