MarwaAhmad
MarwaAhmad

Reputation: 884

bundles not working in debug mode Asp.net MVC

While in debug mode bundling is not working, unlike release mode.

Error:

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

ideas?

Code in RegisterBundles:

bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                    "~/Scripts/jquery-{version}.js"));

Upvotes: 0

Views: 1551

Answers (1)

Cuteboy_Max
Cuteboy_Max

Reputation: 131

Add this in your Bundle.Config file..

BundleTable.EnableOptimizations = false;

Upvotes: 1

Related Questions