‘An unhandled Microsoft .NET Framework exception occurred in w3wp.exe [40604]’
An unhandled exception of type 'System.NullReferenceException' occurred in Syncfusion.XlsIO.Base.dll
See attached image of the error we get.
Any ideas ?
Cheers ... Rob.
Hi Rob,
Thanks for contacting Syncfusion support.
Query : “An unhandled Microsoft .NET Framework exception occurred in w3wp.exe [40604]”
This exception is caused by the updates of .Net Framework 4.5. To resolve the issue, refer to the below link and uninstall the last update.
http://anishantha87.blogspot.in/2014/09/an-unhandled-microsoft-net-framework.html
Aruna Nishantha's blogspot: An unhandled Microsoft .NET ... An unhandled Microsoft .NET Framework exception occurred in w3wp.exe I encountered this error while developing a website with web forms in asp.net 4.5.1 I ran it with ... Read more... |
Query : “An unhandled exception of type 'System.NullReferenceException' occurred in Syncfusion.XlsIO.Base.dll”
We created a sample in exporting but we are unable to reproduce the mentioned exception. So please confirm the following details
1. Are you performing any filter/sorting operation before exporting?
2. Is this exception throws only in excel exporting?
3. Share the code example.
4. Essential Studio version details.
Please find the attached sample
Sample Link: http://www.syncfusion.com/downloads/support/forum/121111/ze/Sample142103850084694
Try the above sample and still if you face the issue, please reproduce the issue in the above sample and get back to us.
Regards,
Prasanna Kumar N.S.V
This exception will throw when there is mismatch in the columns and datasource of exporting data. So, please ensure that there is no mismatch in the datasource.
Sample: http://www.syncfusion.com/downloads/support/forum/121111/ze/Sample142103_(2)1432083486
Regards,
Prasanna Kumar N.S.V
Exception Info: System.NullReferenceException
Stack:
at Syncfusion.XlsIO.Implementation.ApplicationImpl.get_IsSaved()
at Syncfusion.XlsIO.Implementation.WorkbookImpl.Close(Boolean, System.String)
at Syncfusion.XlsIO.Implementation.WorkbookImpl.Finalize()
Hi Rob
IsSaved property is used to identify whether the workbook is saved or not. The reported exception will throw when a workbook in workbooks collection is Null. When the memory usage of the application increases, the garage collector will dispose the unused objects. So an unused workbook might be disposed in workbooks collection, which might lead to this exception.
It would be grateful if you could share the number of rows and columns that you are exporting. If the limit is more, try to reduce the rows and columns count while exporting and check whether the issue is reproduced or not.
Regards,
Prasanna Kumar N.S.V