Try our conversational search powered by Generative AI!

Episerver Forms Server Error


We are experiencing problem while creating/viewing a form in local development environment running under local IIS.

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

The application is runnig locally under Local IIS and the name of the WebSite is SiteName.

However if the applocation runs under IIS Express or deployed on a Web Server with the proper host name (, all working fine as expected.

The problem happens while ruuning the application in a developer PC with Local IIS.

We are using Episerver Code 10.10.4 with Forms 4.8.0

Any help is appreciated.

Aug 02, 2018 18:39

Hi Nilakantha,

Please check the path ~/SiteName/EPiServer/EPiServer.Forms/Views/ElementBlocks/FormContainerBlock.ascx The default view is here

Do you use Virtual Directory ?

Aug 03, 2018 11:10

Hi Quan,

Yes, in development environment, the "SiteName" is the virtual directory/application created under "Default Web Site".

I couldn't locate the file in the above path. But the file is in the  modules\_protected\EPiServer.Forms\

All is fine when we deploy the code in our staging environment where we have a propery domain name for the site.



Aug 03, 2018 11:29

Hi Nilakantha,

Perhaps, the problem happens when using virtual directory.

I'll log a bug and investigate the problem. For now, please create a new site and dont use virtual directory.

Thanks for letting us know about this.


Edited, Aug 03, 2018 11:41

Great Quan. Much appreciated. Any follow up on this issue would be very much appreciated. Thanks.

Aug 03, 2018 11:43

I don't think "setup site under VD for local development, then run as standalone site in staging/prod" is a good approach. You should use a separated site in IIS for it, to mimic what you have in staging, production.

IMO, supporting VD just for local development (which is impractical in real life) worth much more effort and bring little benefit.

Edited, Sep 07, 2018 9:48
* 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.