Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jonathan Dexter 3 posts 73 karma points
    Sep 21, 2015 @ 19:13
    Jonathan Dexter
    0

    Umbraco Forms License producing Error

    After installing UmbracoForms on production with the appropriate license file (umbracoForms.lic) in the bin/ folder, the site repeatedly dumps messages like the following in the App_Data/umbraco.licensing.log.txt file.

    Your license has been approved for the following IPs/Domains: - Domain: www.
    - Domain: *.
    Looking for *.lic in D:\home\site\wwwroot\bin
    Found 1 .lic file(s):
    - D:\home\site\wwwroot\bin\umbracoForms.lic
    Could not validate license:
    

    The site is hosted on Azure.

    License on Umbraco Forms states that it has a live URL matching the correct site, and downloading the license appears to look good (~3.9kb text file). Nonetheless, these messages continue to appear.

    Steps tried:

    • Redonloading the license file
    • Restarting the server
    • Deleting the umbraco.licensing.log.txt file

    Is there a step I've missed?

  • Jonathan Dexter 3 posts 73 karma points
    Sep 22, 2015 @ 20:35
    Jonathan Dexter
    0

    An update to this:

    Adding another license with the correct URL allows the domain to be displayed, but the "Could not validate" message persists.

    Your license has been approved for the following IPs/Domains: - Domain:    VALIDDOMAIN.com (THIS DOMAIN IS NOW CORRECT)
    Looking for *.lic in D:\home\site\wwwroot\bin
    Found 1 .lic file(s):
    - D:\home\site\wwwroot\bin\umbracoForms.lic
    Could not validate license:
    

    The issue appears to be rooted in "Could not validate license:". These messages being logged is causing file access exceptions.

  • Dennis Aaen 4499 posts 18254 karma points admin hq c-trib
    Sep 23, 2015 @ 07:43
    Dennis Aaen
    0

    Hi Jonathan,

    If you fill out the form on your front-end off your website, and then go to the Umbraco Forms section in the backoffice.

    Then you should see a folder called Enterties, if you click on this then each submission off the form, should be a record in there.

    If you look at the data of this can you then see the values that you filled into the form when you submitted it.

    /Dennis

  • Jonathan Dexter 3 posts 73 karma points
    Sep 23, 2015 @ 19:31
    Jonathan Dexter
    0

    The entries are getting created - that isn't necessarily the issue. The entries are getting created, and then going through a workflow, which does some additional operations.

    Basic flow is:

    1. Submission
    2. "Submitted" entry
    3. Workflow (which validates that the submitted entry is "valid")
    4. Auto-approval if the workflow says everything is good
    5. Redirection to the thank you page

    The error is arising in #3, when the workflow does some logic. This workflow will attempt to access Umbraco forms, and if another thread is logging a message to the log file, will get an IO exception. This breaks auto-approval, and even displays an error message to the user.

  • Mark Bowser 273 posts 860 karma points c-trib
    Nov 02, 2015 @ 21:09
    Mark Bowser
    0

    Jonathan,

    I'm also experiencing this:

    Your license has been approved for the following IPs/Domains: - Domain: www.
    ...
    Could not validate license:
    

    When you say that "Adding another license with the correct URL allows the domain to be displayed", what do you mean by adding another license? I've tried updating the live and dev domains at umbraco.com and redownloading the license. It doesn't change anything for me.

  • Jan Vanuytrecht 32 posts 80 karma points
    Nov 04, 2015 @ 10:19
    Jan Vanuytrecht
    0

    In the backoffice, we see this error in the developer tools:

    http://[yourdomain]/umbraco/backoffice/UmbracoForms/Licensing/GetLicenseStatus 500 (Internal Server Error)

    If we investigate the issue further, we know it comes down to this code server side.

    First the LicensingController's GetLicenseStatus() method is called.

    In turn, this method throws an exception:

    public static int TrialDaysLeft()
    {
        Validator validator = new Validator("UmbracoForms", "...");
        validator.Check();
        int result;
        if (Validator.ValidationState == 3)
        {
            result = validator.TrialDaysLeft();
        }
        else
        {
            result = 0;
        }
        return result;
    }
    

    Do you guys see the same error message in Bo when opening dev tools? It should at least show in a notification...

  • Javed Miah 1 post 71 karma points
    Nov 20, 2015 @ 11:21
    Javed Miah
    0

    I am experiencing the same problem. Does anyone have a solution to this bug?

  • Nicholas Westby 2054 posts 7100 karma points c-trib
    Nov 20, 2015 @ 19:00
    Nicholas Westby
    0

    Here are some related issues:

    It seems this file is written to even if you are running Contour on localhost (Contour is supposed to work without restrictions on localhost).

Please Sign in or register to post replies

Write your reply to:

Draft