StyleBundle Index was outside the bounds of the array

Problem was in version of next packages:

enter image description here

You have to update it and problem will be solved.


I had the same error. My ASP.NET Web Optimization Framework was updated, but Bootstrap was at version 3.3.0. I updated Bootstrap to 3.3.5 and the error is gone.


I had the same problem and when I tried different checking I found out that there is a selector in my css file like this that cause the problem:

.glyphicons-icon _:-o-prefocus, .glyphicons-icon { background-image: url(../images/glyphicons.png); }

it seems that Microsoft.Ajax.Utilities.CssParser has a problem with _: css selector. I removed the line and it's working.


The same error can appear when one try to add javascript files to a StyleBundle.