I am currently evaluating the Aspose.Cells.NET component for using in our intranet. I have been able to get everything running interactively in the Visual Studio environment, but when I attempt to deploy a test application to my intranet server I receive the error below.
I added code to my project to return the current trust level and this is what it returned:
I was finally able to get this to work by setting up a MyResolveEventHandler and specifying the actual location of the DLL in the routine. I am not certain why it was necessary but it worked.
Dman1965:However, I am now experiencing a problem in a different part of my test program. When I am attempting to save an Excel file I receive the error:"Object reference not set to an instance of an object." I access properties of the object up until this point, but when i attempt to save the spreadsheet, I receive this error.
This attachment reproduces the error on my system.
Well, we need to thoroughly investigate and look into the issue if if there is something to do with your code which is a bit complex or it is a bug/issue with our product. For the sake of investigation, I have logged a ticket with an id “CELLSNET-41534” for your issue. Our concerned developer will look into it soon.
Please change your codes of setting default style. e.g
'Dim Default_Style As Aspose.Cells.Style =
'Default_Style.Font.Name = DefaultFont
'Default_Style.Font.Size = DefaultFontSize
oWB = New Aspose.Cells.Workbook
Dim Default_Style As Aspose.Cells.Style = oWB.DefaultStyle
Default_Style.Font.Name = DefaultFont
Default_Style.Font.Size = DefaultFontSize
oWB.DefaultStyle = Default_Style
It will fix your issue and you may use it as a workaround. And we will fix this issue soon.
Thank you. That solved the problem.
Thanks for your posting and using Aspose.Cells.
We are pleased to know that solution works for you. If you face any other issue, please feel free to post on our forums, we will be glad to help you more.
Thanks for your posting and using Aspose.Cells for .NET.
We have fixed the issue.
Please download and try this fix: Aspose.Cells for .NET v184.108.40.206 and let us know your feedback.