I upgraded Aspose.Cells from version 6.0.0 to 7.1.1 with no code changes. When I call SetLicense the following exception is thrown. The only change I did was to replace the 6.0.0 dll with the 7.1.1 dll. How do I resolve this?
at System.Xml.NameTable.Add(String key)
at System.Xml.XmlElementList…ctor(XmlNode parent, String name)
at System.Xml.XmlElement.GetElementsByTagName(String name)
at ..(XmlElement param0, String param1)
at ..(XmlDocument param0)
at ..(Stream param0)
at Aspose.Cells.License.SetLicense(Stream stream)
Hi,
My Total license was renewed 4/21/2011 so it should still be ok. The license works for Aspose.Words 11.0.0 but not for Aspose.Cells 7.1.1.
Where can I download the .lic file for my renewal? I want to make sure I am using the correct lic file.
Hi,
I created a quick app. Everything worked fine so there is no value in sending it. I then changed the dll back to Aspose.Cells version 6.0.0 and everything in my application worked fine. So for some reason, the 7.1.1 in my application fails on SetLicense but does not for 6.0.0. I will try a few more things. If I can’t get it working I guess i have to stay with 6.0.0
I can only produce the problem in my application which is too large to send. Maybe is is a threading issue with 7.1.1.? 6.0.0 works fine. I also tried to call SetLicense(filename) using the file instead of an embedded resource file. That also failed.
Hi,
You should call License.SetLicense from the Global.asax.cs (Global.asax.vb) file, in the Application_Start protected method.
Follow these simple rules:
· The license only needs to be set once per application domain.
· You need to set the license before using any other Aspose.Cells classes.
Calling License.SetLicense multiple times is not harmful, but simply wastes processor time.
If you are developing a Windows Forms or Console Application, call License.SetLicense in your startup code, before using Aspose.Cells classes.
When developing an ASP.NET application, you can call License.SetLicense from the Global.asax.cs (Global.asax.vb) file, in the Application_Start protected method. It is called once when the application starts. Do not call License.SetLicense from within Page_Load methods since it means the license will be loaded every time a web page is loaded.
If you are developing a class library, you can call License.SetLicense from a static constructor of your class that uses Aspose.Cells. The static constructor will execute before an instance of your class is created making sure Aspose.Cells license is properly set.
Are you sure something has not changed in SetLicense from your previous versions? This makes no sense. The SetLicense worked fine with the older Cells version but does not work with the newer version. All I did is upgrade to the newer dll.
Hi,
Could you please drill down the problem? If the problem is replicable in larger application, then it will also be replicable in simpler application.
Please also note, you will have to set license before using any other Aspose.Cells Api.
I have also forwarded your question to our development team.