c# - SpreadsheetGear throwing IndexOutOfRangeException inside constructor -


we use spreadsheetgear in 1 of our applications generating excel workbooks. i'm trying reuse of functionality in asp.net web application, far i'm stumped.

i started off referencing our existing library in web application , making appropriate call ended receiving indexoutofrangeexception.

i thought might problem in our code, reduced problem down webforms page calls following (which is, incidentally, first line of code in spreadsheetgear web forms example):

spreadsheetgear.iworkbook workbook = spreadsheetgear.factory.getworkbook(); 

but i'm still getting exact same problem. i've no idea array out of bounds because it's coming inside obfuscated part of spreadsheetgear.

stack trace:

[indexoutofrangeexception: index outside bounds of array.]    ᦿ..ctor(cultureinfo a_0) +2235    ᦿ..cctor() +27994 

has else seen problem before?

i dug bit further, , problem turned out setting in application_beginrequest.

we had code doing work figure out locale use (based on load of things such support , languages supported user's browser). part of setting numberformat.numbergroupseparator empty string. turns out spreadsheetgear doesn't , caused exception above.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

inno setup - TLabel or TNewStaticText - change .Font.Style on Focus like Cursor changes with .Cursor -