When I publish my asp.net mvc application the bundle script generates a ref problem. scripts.
As in the debug environment I do not use the bundles, the problem does not happen.
Error:
"common / scripts": Duplicate data property in object literal not allowed in strict mode.
Global.asa white:
ViewEngines.Engines.Clear();
ViewEngines.Engines.Add(new RazorViewEngine());
ModelBinders.Binders.Add(typeof(decimal), new DecimalModelBinder());
AreaRegistration.RegisterAllAreas();
WebApiConfig.Register(GlobalConfiguration.Configuration);
FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
RouteConfig.RegisterRoutes(RouteTable.Routes);
BundleConfig.RegisterBundles(BundleTable.Bundles);
AuthConfig.RegisterAuth();
BundleTable.EnableOptimizations = !HttpContext.Current.IsDebuggingEnabled;
Bundle Register:
bundles.Add(new ScriptBundle("~/base/scripts").Include("~/Scripts/Site.js"));
bundles.Add(new ScriptBundle("~/modernizr").Include("~/Scripts/modernizr-2.7.2.js"));
bundles.Add(new ScriptBundle("~/metro/scripts").Include("~/Scripts/Metro/metro.js"));
bundles.Add(new ScriptBundle("~/jquery/scripts").Include("~/Scripts/jquery-2.1.1.js", "~/Scripts/jquery-migrate-1.2.1.js", "~/Scripts/jquery.unobtrusive-ajax.js", "~/Scripts/jquery-ui-1.10.4.js", "~/Scripts/jquery.validate.js", "~/Scripts/jquery.validate.unobtrusive.js"));
bundles.Add(new ScriptBundle("~/common/scripts").Include("~/Scripts/Common/jquery.ui.dialogr.js", "~/Scripts/Common/jquery.select2.js", "~/Scripts/Common/jquery.maskedinput.js", "~/Scripts/Common/jquery.number.js", "~/Scripts/Common/jquery.float-thead.js", "~/Scripts/Common/jquery.tablesorter.js"));