Error on 64bit System : "The type initializer for 'NPOI.OpenXmlFormats.Spreadsheet.ThemeDocument' threw an exception.

Dec 10, 2012 at 12:45 AM
Edited Dec 10, 2012 at 2:01 AM

I have got the following error on 64 bits machine but it is working on 32 bits at line -:

 var templateWorkbook = new XSSFWorkbook(uploadedFile.InputStream);

NPOI 2.0 Alpha.

Excel 2007

 

"The type initializer for 'NPOI.OpenXmlFormats.Spreadsheet.ThemeDocument' threw an exception.