Try our conversational search powered by Generative AI!

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.