Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1750
PivotGrid Excel Datasource security exception
posted

Hi,

I follow the example in http://help.infragistics.com/NetAdvantage/DV/2010.3/CLR4.0/ in order to import data from Excel in a XamPivotGrid.

My problem is that I get a security exception at line :

            ExcelDataConnectionSettings excelDataSettings = new ExcelDataConnectionSettings { FileStream = fileStream, GeneratedTypeName = PivotGridStrings.XPG_ExcelFileDataSource_InitialCube, WorksheetName = PivotGridStrings.XPG_ExcelFileDataSource_WorksheetName };

------------------

The type initializer for 'SR' threw an exception.

 

Any ideas?

Thank u

D.

Parents
  • 180
    posted

    Could it be due to the fact that you are trying to reference an Excel file stored on the file system? If that's the case, you should probably be adding the Excel file you're referencing in the ClientBin folder and update your path in the code accordingly.

Reply Children