मुझे एक बड़ी समस्या है। मैंने एक एमवीसी 5 प्रोजेक्ट बनाया और मैं इसे डिफ़ॉल्ट कोड से शुरू नहीं कर सकता। समस्या बंडल के साथ है। यह BundleConfig.RegisterBundles(BundleTable.Bundles);
लाइन पर Global.asax.cs/Application_Start
विधि में बंद हो जाता है। यह कहता है "विधि नहीं मिली: '!! 0 [] System.Array.Empty()'।" (System.MissingMethodException)।एमवीसी 5 बंडल त्रुटि
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"));
}
मैं वी.एस. 2015 पूर्वावलोकन उपयोग कर रहा हूँ:
यहाँ BundleConfig.cs
कोड (डिफ़ॉल्ट) है। मुझे क्या करना चाहिए/बदलना चाहिए?
धन्यवाद!
यह नेट 4.5.3 या नेट 4.6 में एक बग की तरह लगता है। 4.5.2 के खिलाफ इसे संकलित करना ठीक काम करता है। – Mrchief
@Mrchief कि मेरे लिए भी यह किया –