I am getting error "Object reference not set to an instance of an object" randomly while saving Workbook object.
There is no fixed frequency or count when this fails. Most of the time it fails when run 2nd or 3rd time or sometimes does not give error even after running 10 times.
I am using Aspose.Cells.dll version 7.5.3.0.
Pls help us resolving this issue and let me know if you need any other information.
It looks like you are using Aspose.Cells in a multithreaded application which allows different threads to work on the spreadsheet(s). For your information, Aspose.Cells (being created in manged .NET APIs) does support multithreading, but you need to consider a few things here. For example, the component can be used in mutlithreading environment, however you will have to create/use separate workbook/ template Excel file instance in separate threads. You cannot share any shared resources between threads least you may find unstable data or corrupt data. If you have any shared resources, then you will have to synchronize the access by yourself. So, please use different workbooks in different threads on a safer side.
If you still find the issue, kindly create a sample console application, zip it and post it here to reproduce the issue on our end, we will check it soon. Also, provide your template files (if you have any).
There might be some APIs that are obsoleted in the new versions of the product. Could you elaborate your issue/errors which APIs are not compatible in the new version/fix, we will check it and help you through.
Also, we recommend you to kindly see the release notes of different versions that are released after v7.5.3:
I still suspect it might be an issue with mulithreading, so you have to cope with it accordingly (please see one my previous reply for more information). As requested earlier, we cannot evaluate your issue unless we have your sample application, so we request you to separate the issue regarding Aspose.Cells and kindly create a sample console application (runnable) with v7.7.2.1, zip it and post it here to reproduce the issue on our end, we will check it soon. Also, provide your template files (if you have any).
Thank you for the clarification. I am afraid, we still require the sample application to reproduce the problem with latest build of Aspose.Cells for .NET on our end before we could move forward to log an investigation, and towards the correction (if applicable). Please also provide the environment details such as Operating System version, Operating System architecture, Service Pack, target .NET Framework version etc. This information will help us simulate the environment on our end thus increasing the chances of replicating the said problem.
Thank you for your cooperation and understanding.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
Enables storage, such as cookies, related to analytics.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.