The Episerver Forms is looking for an incorrect path

  • Updated

This article describes an issue when trying to install the EPiServer.Forms Nuget package. When trying to run a form the following error is thrown. 

The partial view 'FormContainerBlock' was not found or no view engine supports the searched locations.

The plugin is looking for an incorrect path. The solution is to move the view blocks from

~/modules/_protected/episerver/EPiServer.Forms/Views/ElementBlocks/ 

to

~/Views/Shared/ElementBlocks/