3

We are experiencing a StackOverflow exception in VS2013 using:

var importedTypesBundle = new ScriptBundle("~/ImportedTypes/all.js");

Replacing with Bundle() it works... but it does not minify.

It looks the mifinier is not happy about some js file. Any idea how find the error source?

Soner Gönül
  • 97,193
  • 102
  • 206
  • 364
Robert
  • 872
  • 1
  • 8
  • 24
  • You could try catching first chance exceptions in Visual Studio after you restart the app pool and when the bundle is requested for the first time. – user92454 Jan 30 '15 at 08:20
  • 1
    actually the exception is: An unhandled exception of type 'System.StackOverflowException' occurred in WebGrease.dll and it stops in our _Layout.cshtml at line: @Scripts.Render("~/ImportedTypes/all.js") – Robert Jan 30 '15 at 16:38
  • @Robert, did you ever find a solution to this problem? – Bryan Rayner Oct 02 '15 at 17:06
  • 1
    Finally we moved to gulp bundling that give us a lot of feature including minify – Robert Oct 17 '15 at 15:13

0 Answers0