Just posting in case this helps someone. I found a workaround. The crash was related to a few valid but very large JavaScript arrays.
Quote:
var PostcodeTownIndex1=[[2000,2443],[2009,2062]]; // crashes
There is a short array of 2 elements in the example code above. This obviously does run without any problems. However, assume that problems do arise with around 3500 elements. The same problem also comes up with other kinds of large statements, such as a large array of strings.
The crash can be avoided by replacing standard JavaScript var statements with JScript.NET-specific typed var statements. Example:
Quote:
var PostcodeTownIndex1:uint[][]=[[2000,2443],[2009,2062]]; // works
The crash only occurs on IIS6 and IIS7 and not on IIS5.1 or Cassini, so it can not be located on an XP developer PC. So I had to install Windows Server 2003 and Visual Studio on a PC for testing. When the code is started in Visual Studio with debugging enabled, a System.StackOverflowException occured in Microsoft.JScript.dll. I managed to locate the cause by modifying the code and testing with VS debugger. I also tried DebugDiag, but it did not take me much ahead in this case.