Monday, 3 November 2014

StyleBundle Index was outside the bounds of the array

Problem Scenarios: I want to include all files in directory like this:
bundles.Add(new StyleBundle("~/Content/ABCJS").Include(
    "~/Content/simpliq/*.js"
));
But I got this error Index was outside the bounds of the array
and red line is:
@Styles.Render("~/Content/ABCJS")
Solution: So there is very simple way you can resolve this problem by just updating two package WEB OPTIMIZATION and WEBGREASE using package manager console or nuget page.

No comments:

Post a Comment