Ho un grosso problema. Ho creato un progetto MVC 5 e non riesco ad avviarlo con il codice predefinito. Il problema è con il raggruppamento. Si arresta nel metodo Global.asax.cs/Application_Start
, sulla riga BundleConfig.RegisterBundles(BundleTable.Bundles);
. Si dice "Metodo non trovato: '!! 0 [] System.Array.Empty()'." (System.MissingMethodException).MVC 5 Bundle Error
Ecco il codice BundleConfig.cs
(default):
public static void RegisterBundles(BundleCollection bundles)
{
bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
"~/Scripts/jquery-{version}.js"));
bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
"~/Scripts/jquery.validate*"));
// Use the development version of Modernizr to develop with and learn from. Then, when you're
// ready for production, use the build tool at http://modernizr.com to pick only the tests you need.
bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
"~/Scripts/modernizr-*"));
bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
"~/Scripts/bootstrap.js",
"~/Scripts/respond.js"));
bundles.Add(new StyleBundle("~/Content/css").Include(
"~/Content/bootstrap.css",
"~/Content/site.css"));
}
Sto utilizzando VS 2015 Preview. Cosa dovrei fare/cambiare?
Grazie!
Sembra un errore in .Net 4.5.3 o .Net 4.6. Compilandolo contro la 4.5.2 funziona bene. – Mrchief
@Mrchief che lo ha fatto anche per me –