I dug into this a bit further, and the problem turned out to be something we were setting in Application_BeginRequest
.
We had some code that was doing some work to figure out which locale to use (based on a load of things such as what we could support and the languages supported by the user's browser). As part of that we were setting the NumberFormat.NumberGroupSeparator
to an empty string. Turns out SpreadsheetGear doesn't like that and caused the exception above.