A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

Problem with episerver forms preview mode

Vote:
 

Hi!

I've just installed episerver forms on the latest version of episerver 11.9.2.

I'm getting errors when I try to preview my form container.

Here's the error I get.

Exception details: 

TypeMismatchException: The routed data is of type 'EPiServer.Forms.Implementation.Elements.FormContainerBlock' and the binding context data 'currentContent' is of type 'EPiServer.Forms.Implementation.Elements.FormContainerBlock', neither of which matches the requested type 'mysite.Web.Models.Blocks.BaseBlock'.

#194861
Edited, Jul 04, 2018 17:07
Vote:
 

Hey Johas,

Do you have a base IContent controller that expects a BaseBlock?

BR,
Marija

#194918
Jul 08, 2018 17:24
* 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.