mO SharemO Share

"Could not load file or assembly 'netstandard, Version=2.0.0.0,Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'...The system cannot find the file specified."- Error while trying to export any web report to excel format.

SYMPTOMS


An error is appeared on Screen while trying to export any web report to Excel format. The error is as follows.

Could not load file or assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified.    at Syncfusion.XlsIO.Implementation.XmlSerialization.FileDataHolder.SaveStyles()
at Syncfusion.XlsIO.Implementation.XmlSerialization.FileDataHolder.SaveWorkbook(ExcelSaveType saveAsType)
at Syncfusion.XlsIO.Implementation.XmlSerialization.FileDataHolder.SaveDocument(ExcelSaveType saveType)
at Syncfusion.XlsIO.Implementation.XmlSerialization.FileDataHolder.SaveDocument(Stream stream, ExcelSaveType saveType)
at Syncfusion.XlsIO.Implementation.WorkbookImpl.SaveAsInternal(Stream stream, ExcelSaveType saveType)
at WebReports.Api.Export.ExcelExportPackage.Dispose()
at WebReports.Api.Execute.ExecuteReport.CreateDownloadFile(wrExportType exportType)
at WebReports.Api.Execute.ExecuteReport.Process()

CAUSE


The current version of Ginesys Report requires Microsoft .NET Standard 2.0 or above for some operations. Export a report to excel is on of such dependent feature. Microsoft .NET Standard 2.0 comes with the installation of Microsoft .NET Framework 4.7.2 on the server running Ginesys Report. In most cases it is the same server running Ginesys HO application. The above error appears when Microsoft .NET Framework 4.7.2 is missing on application server.

Currently, Microsoft .NET Framework 4.7.2 is pre-requisites for Ginesys. Please visit the following article to see the list of pre-requisites.

https://ginesys.atlassian.net/wiki/spaces/PUB/pages/67797003

RESOLUTION


  • Install the Microsoft .NET Framework 4.7.2 in Ginesys HO applications server. If the Report role is configured on different server, then this framework requires to be installed on that server.

  • Restart the server.

This should solve this issue.