Sign In  Sign Up Live-Chat

SetLicense() Error - String was not recognized as a valid DateTime

Last post 06-07-2008, 8:16 AM by jmborde. 2 replies.
Sort Posts: Previous Next
  •  06-06-2008, 7:36 AM 130347

    SetLicense() Error - String was not recognized as a valid DateTime

    Attachment: Present (inaccessible)
    Hello,

    I'm using the following code to activate my Aspose.form license:

      var stream = new FileStream(licenseFilename, FileMode.Open, FileAccess.Read);
      var license = new License();
      license.SetLicense(stream);

    I get an exception on the SetLicense method:
    "String was not recognized as a valid DateTime"

    I've attached my license file.

    I resorted to using the stream method because in my asp.net app, when I put the license file in the bin directory, and just used the method:

    license.SetLicense("Aspose.form.lic");

    I would get an exception that the file could not be found. 

    I even tried adding the license as an embedded resource per the instructions.

    This is in an ASP.Net app using csharp.  I set security to my bin directory to "Everyone" Full to make sure there were no security restrictions.

    I am using the latest version of Aspose.Form (downloaded 6/4/2008).
    I am using version 3.5 of the .Net framework.

    thanks

    jim
     
  •  06-07-2008, 4:06 AM 130443 in reply to 130347

    Re: SetLicense() Error - String was not recognized as a valid DateTime

    Attachment: Present (inaccessible)

    Hello,

    Please check the attached hotfix.

    thanks


    Team Lead
    Aspose Guangzhou Team
    About Us

    Contact Us
     
  •  06-07-2008, 8:16 AM 130453 in reply to 130443

    Re: SetLicense() Error - String was not recognized as a valid DateTime

    Thank you.  All is well now.

     

    jim

     
View as RSS news feed in XML