Free Support Forum - aspose.com

BizTalk Error in SetLicense Method

Hello,

I am using ASPose.Cells inside of a BizTalk Server 2004 orchestration which was working fine until I included a call to the SetLicense method in order to apply my license file. I am now occasioinally receiving an error stating that I have a reference not set to an object. I tried using an atomic scope around the calls to ASPose but I am still occasionally receiving the error.

Any help on this would be greatly appreciated.

Thanks,

-Ron

Hi Ron,

Which version of Aspose.Cells you are using? How do you call the SetLicense() method? Make sure that you have set the license before using Aspose.Cells.Workbook or other APIs. For reference, please see:

http://www.aspose.com/wiki/default.aspx/Aspose.Cells/Licensing.html

We will response you soon related your issue.

Thanks for your patience.

Regards

Amjad Sahi

Aspose Nanjing Team

Hello Amjad,

I am using Aspose v4.0.2.0.

I am calling the SetLicense method from within a serializable class from within a shared method as in the following code:

objAsposeLic = New Aspose.Cells.License

'Use license file as embedded resource

objAsposeLic.SetLicense("Aspose.Cells.lic")

This call is made in both methods that makes calls to the Aspose assembly.

Thank you for the quick response.

Hi,

Could you try the following if this would be helpful to you:

http://www.aspose.com/Wiki/default.aspx/Aspose.Corporate/HowToFixCSPException.html

If the problem still exists, feel free to contact us.

Thanks

Amjad Sahi

Aspose Nanjing Team

Hi Amjad,

I read the article and verified that the directory already exists on both BizTalk servers and has the Everyone permissions assigned to it.

Please let me know if you have any other leads.

Thanks,

-Ron

Hi Ron,

Well It seams to me some sort of complexity related to your issue.

We will resolve the issue and resonse you soon.

Thanks for your patience.

Regards

Amjad Sahi

Aspose Nanjing Team

Hi Ron,

1. Are you sure that this error occurs on SetLicense method?

2. Are you building the license file as an embedded resource in your assembly?

3. Please try to move your calling SetLicense code outside of this serializable class.

4. Please call SetLicense method just once at the start of your program.

5. If the problem still occurs, please try/catch SetLicense method and post the whole error message here.

Thank you.