Metafiles license not working

Last post 08-28-2010, 5:21 PM by bradpit250810. 7 replies.
Sort Posts: Previous Next
  •  07-05-2010, 3:54 AM 246980

    Metafiles license not working

    Hi,

    I recently purchased licenses for Words (.Net), Slides (Java) and Metafiles (Java) but unfortunately I can't seem to get the Metafiles one to load. I'm using aspose-metafiles-1.6.1-20100110.jar and loading the license in the following way...

    FileInputStream metafilesLicenseStream=new FileInputStream("C:\\Development\\Java\\Tomcat\\version 6.0.14\\webapps\\asset-bank-current\\licences\\Aspose.Metafiles.lic");
    License metafilesLicense=new License();
    metafilesLicense.setLicense(metafilesLicenseStream);
     
    ... I get a 'License not valid for this product' error.
     
    The Java Aspose.Slides and .Net Aspose.Words licenses both work fine.

    Thanks,
    Matt
     
  •  07-08-2010, 7:40 AM 247573 in reply to 246980

    Re: Metafiles license not working

    Hi Matt,

    We apologize for the delayed response.

    Can you please send us the Aspose.Metafiles for Java license file (Aspose.Metafiles.lic) following the instructions here so that we can investigate the issue?

    Kind Regards

    Muhammad Sabir
    Support Assistant Manager
    Aspose Sialkot Team
    http://www.aspose.com
    Aspose - Your File Format Experts

    Keep in touch! We're on Twitter and Facebook
     
  •  07-08-2010, 10:32 AM 247629 in reply to 246980

    Re: Metafiles license not working

    Hi Matt,

    We could not verify the issue with the license file sent by you. It worked fine in a simple Java application.

    Can you please provide the information about your production environment? If possible, a sample project showing the issue will be helpful.

    Muhammad Sabir
    Support Assistant Manager
    Aspose Sialkot Team
    http://www.aspose.com
    Aspose - Your File Format Experts

    Keep in touch! We're on Twitter and Facebook
     
  •  07-08-2010, 10:56 AM 247635 in reply to 247629

    Re: Metafiles license not working

    Hi Muhammed,

    I'm actually loading two licenses in the class (one for Slides and one for Metafiles) could that be the problem? I am loading them as follows...

    String sLicensePath = AssetBankSettings.getApplicationPath() + "\\" + AssetBankSettings.getThirdPartyLicenseDirectory();
    slidesLicenseStream=new FileInputStream(sLicensePath + "\\Aspose.Slides.lic");
    metafilesLicenseStream=new FileInputStream(sLicensePath + "\\Aspose.Metafiles.lic");
    //Instantiate the License class
    License slidesLicense=new License();
    License metafilesLicense=new License();
    //Set the license through the stream object
    slidesLicense.setLicense(slidesLicenseStream);
    metafilesLicense.setLicense(metafilesLicenseStream);

    ...and the Slides one works fine while the Metafiles one doesn't.

    Thanks,
    Matt

     
  •  07-08-2010, 11:09 AM 247638 in reply to 247635

    Re: Metafiles license not working

    Hi Matt,

    Please try with the following:
    com.aspose.slides.License slidesLicense=new License();
    com.aspose.metafiles.License metafilesLicense=new License();

    There are separate license classes for Aspose.Slides and Aspose.Metafiles.

    Regards

    Muhammad Sabir
    Support Assistant Manager
    Aspose Sialkot Team
    http://www.aspose.com
    Aspose - Your File Format Experts

    Keep in touch! We're on Twitter and Facebook
     
  •  07-08-2010, 12:14 PM 247647 in reply to 247635

    Re: Metafiles license not working

    Hi Matt,

    Adding more to Sabir's comments, License class is present in both the components. So JVM might have got into trouble while compiling the code i.e. which object to be instantiated from which Object class.

    Please specify the complete name i.e. com.aspose.metafiles.License metafilesLicense=new com.aspose.metafiles.License(); while creating the objects. In case you still face any problem or you have any further query, please feel free to contact.

    We are really sorry for your inconvenience.


    Nayyer Shahbaz
    Support Developer, Aspose Sialkot Team
    About Us
    Contact Us

    Keep in touch! We're on Twitter and Facebook
     
  •  07-09-2010, 4:32 AM 247775 in reply to 247647

    Re: Metafiles license not working

    Hi Guys,

    Thanks for that, problem solved.

    Cheers,
    Matt
     
  •  08-28-2010, 5:21 PM 256060 in reply to 247775

    Re: Metafiles license not working

    Nice job Admins!

    Hey Matt, 

    you are satisfied with the application right! I am new here! But the post is really encouraging! When people faced a problem they are really helpless! If  they can solve the problem m they are the happier person in the world!

    Keep it up! cheers

    _______________________________________________________________

    bse market

    indian stock market

     
View as RSS news feed in XML