Fixing Broken Rich Text Areas: The partial view '~/Views/DynamicAgilityModule/MVC/Staging/1.ascx' was not found

If you are using the default Rich Text Editor in Agility, and it is not outputting, you may see the following error in the Web Logs:

System.InvalidOperationException: The partial view '~/Views/DynamicAgilityModule/MVC/Staging/1.ascx' was not found or no view engine supports the searched locations. The following locations were searched:
at System.Web.Mvc.HtmlHelper.FindPartialView(ViewContext viewContext, String partialViewName, ViewEngineCollection viewEngineCollection)
at System.Web.Mvc.HtmlHelper.RenderPartialInternal(String partialViewName, ViewDataDictionary viewData, Object model, TextWriter writer, ViewEngineCollection viewEngineCollection)
at System.Web.Mvc.Html.RenderPartialExtensions.RenderPartial(HtmlHelper htmlHelper, String partialViewName, Object model)
at Agility.Web.Mvc.AgilityHelpers.RenderContentZone(HtmlHelper helper, AgilityPage page, String zoneName)

This error is usually due to a configuration issue in the application where it cannot render a virtual file.

To resolve this error, ensure you have the following in the global.asax file:

protected void Application_Start()
            * Enable this to allow Agility module output templates 
            * to be coded in the content manager and compiled without physical files
       System.Web.Hosting.HostingEnvironment.RegisterVirtualPathProvider(new Agility.Web.Mvc.AgilityInlineModuleProvider());

If you are still seeing this issue, please contact and we can modify the default Rich Text Area to point to a specific ControllerActionResult or Partial View in your project.

0 out of 0 found this helpful



Please sign in to leave a comment.