November Happy Hour will be moved to Thursday December 5th.

[BUG] Forms Add-on crashes an application if no sites are configured.

Vote:
 

Be Awared that beta EPiServer Forms (0.21 version) crashes in episerver edit mode if no sites were configured previously.

Have spent several hours with this issue.

An exception of type 'Newtonsoft.Json.JsonSerializationException' occurred in Newtonsoft.Json.dll but was not handled in user code

Additional information: Error getting value from 'ExportingUrl' on 'EPiServer.Forms.FormsModuleViewModel'.

It happens because it tries to do following

private string ResolveUrlFromRoute(string route)
{
route = ModuleHelper.ToResource(route);
string absolutePath = SiteDefinition.Current.SiteUrl.AbsolutePath;
if (!string.IsNullOrEmpty(absolutePath.TrimStart('/')))
route = route.Replace(absolutePath, string.Empty);
return UriSupport.Combine(SiteDefinition.Current.SiteUrl.ToString(), route);
}

#142408
Dec 10, 2015 15:37
Vote:
 

Oops, nice catch. It is filed as bug

 and will be fixed in next release. Thank you.

UPDATE: fixed in version 1.0

#142761
Edited, Dec 22, 2015 7:52
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.