Scott
Scott

Reputation: 1021

Web Forms for Marketers MVC error

We have installed the WFFM (version 2.5 rev 141014) module on a Sitecore 7.5 (rev 141003) instance, using MVC. The package install goes fine and we can see all the proper items in the tree and the functionality in Content/Page Editor works, but when we add a form to a page we get this error:

Exception Sitecore.Forms.Mvc.Controllers.FormController, 

Sitecore.Forms.Mvc: Could not create a controller instance from type name: 'Sitecore.Forms.Mvc.Controllers.FormController, Sitecore.Forms.Mvc'

   at Sitecore.Mvc.Controllers.ControllerRunner.CreateControllerUsingReflection()
   at Sitecore.Mvc.Controllers.ControllerRunner.GetController()
   at Sitecore.Mvc.Controllers.ControllerRunner.Execute()
   at Sitecore.Mvc.Presentation.ControllerRenderer.Render(TextWriter writer)

We've checked all the DLLs and view files and they all appear to match other instances we have and also match the files that are in the WFFM install package. Any help would be much appreciated.

Upvotes: 1

Views: 1044

Answers (1)

Scott
Scott

Reputation: 1021

We figured out the issue. We're using this error handling technique to wrap the execution of our components. WFFM uses a custom ControllerRenderer (FormControllerRenderer). Of course, our custom exception handling doesn't know about this custom class. We've update our code to check for the form renderer and return the correct type, which solved the issue.

This post helped me realize the issue.

Upvotes: 1

Related Questions