Export to excel: assembly error

Hello,

iam using the Grid Toolbar to export my actual view.
PDF is working fine but i get a error when exporting excel.

Code:

     [Route("WebClient/Projekt/ExportToExcel")]
        public ActionResult ExportToExcel(string GridModel)
        {
            var dataSource = GetExportDataSource();
            if (dataSource == null)
                return Redirect("WebClient/Projekt/");

            ExcelExport exp = new ExcelExport();
            GridProperties obj = ConvertGridObject(GridModel);
            GridExcelExport exp2 = new GridExcelExport() { IncludeDetailRow = true, Theme = "flat-saffron", FileName = "Export.xlsx" };
            obj.ExcelDetailTemplateInfo = MyExcelDetailTemplateInfo;
            obj.ServerExcelQueryCellInfo = MyExcelQueryCellInfo;
            return exp.Export(obj, dataSource, exp2);
        }


Error:
System.TypeLoadException: "Der Typ "Syncfusion.Compression.ApplicationException" in der Assembly "Syncfusion.Compression.Portable, Version=16.2200.0.41, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" konnte nicht geladen werden."


Thank you for help.


1 Reply

MP Manivannan Padmanaban Syncfusion Team July 24, 2018 12:13 PM UTC

Hi Kamp, 

Thanks for contacting syncfusion support. We are happy to assist you. 

Query: System.TypeLoadException: "Der Typ "Syncfusion.Compression.ApplicationException" in der Assembly "Syncfusion.Compression.Portable, Version=16.2200.0.41, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" konnte nicht geladen werden." 

The above mentioned error will occur when the dll is not found or not referred properly. For detail template exporting in excel we need to refer the syncfusion.compression.base.dll so, could you please ensure whether the syncfusion.compression.base.dll is referred correctly

You can find the dll in below mentioned location. 

Location:  C:\Program Files (x86)\Syncfusion\Essential Studio\Essential studio version\Assemblies\Frame work version 
 
Also, refer the below help documentation link for server dependences, 

Please get back to us, if you need further assistance. 

Regards, 

Manivannan Padmanaban. 


Loader.
Up arrow icon