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.
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.
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:
Submission
"Submitted" entry
Workflow (which validates that the submitted entry is "valid")
Auto-approval if the workflow says everything is good
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.
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.
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...
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.
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:
Is there a step I've missed?
An update to this:
Adding another license with the correct URL allows the domain to be displayed, but the "Could not validate" message persists.
The issue appears to be rooted in "Could not validate license:". These messages being logged is causing file access exceptions.
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
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:
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.
Jonathan,
I'm also experiencing this:
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.
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:
Do you guys see the same error message in Bo when opening dev tools? It should at least show in a notification...
I am experiencing the same problem. Does anyone have a solution to this bug?
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).
is working on a reply...