Try our conversational search powered by Generative AI!

When the base DataSubmitController.GetFormInitScript action was called, an error occurred

Found in

EPiServer.Forms 2.1

Fixed in

EPiServer.Forms 3.0.0

(Or a related package)

Created

May 16, 2016

Updated

Jun 17, 2016

Area

Built-in elements

State

Closed, Fixed and tested


Description

When you extended DataSubmitController, you could not use GetFormsInitScript() because GetFormInitScript() used GetType() for resolving the module path (to get the view template). When the base GetFormInitScript action was called, an error occurred: Unable to find a module by assembly '[my assembly detail]' Parameter name: moduleAssembly.

DataSubmitController.GetFormInitScript() now takes view from EPiServer.Forms module (using typeof(DataSubmitController) instead of GetType()) .