Seems to be somewhere within episerver.dll (EPiServer.Web.Mvc.XForms) - maybe the fragment??
public static ValidationRuleDescriptor CreateClientValidationRules(XFormsFragment fragment, LocalizationService localizationService)
{
ModelClientValidationRuleCollection modelClientValidationRuleCollection = new ModelClientValidationRuleCollection();
if (fragment.Required)
{
modelClientValidationRuleCollection.Add(new ModelClientValidationRequiredRule(XFormValidator.GetRequiredValidationMessage(fragment, localizationService)));
}
if (!string.IsNullOrEmpty(fragment.ValidationType))
{
modelClientValidationRuleCollection.Add(new XFormClientValidationRegexRule("regularExpression", XFormValidator.GetRegExValidationMessage(fragment, localizationService), DataTypes.Types[fragment.ValidationType].ToString()));
}
return new ValidationRuleDescriptor(fragment.ValidationReference, true, modelClientValidationRuleCollection);
}
When this happen the affected pages cannot be loaded. The solution is to restart the website in IIS. We would like to either solve the problem or to handle the error to notify suitable person(s) to do the restart.
Hi.
Sometimes when the application starts up xforms cannot be loaded (both locally and in production in event of a application reload).
The view null-checks the xform before using statement
Seems to be somewhere within episerver.dll (EPiServer.Web.Mvc.XForms) - maybe the fragment??
When this happen the affected pages cannot be loaded. The solution is to restart the website in IIS.
We would like to either solve the problem or to handle the error to notify suitable person(s) to do the restart.
Any suggestions?