Try our conversational search powered by Generative AI!

Modules routing returns blank output, wtf!


Hello Experts,

Latest version 11.12 CMS

I´ve set up a new site but no modules routes are working.

not /EPiServer/Cms/VisitorGroups

not /EPiServer/EPiServer.DeveloperTools/IOC

not /EPiServer/EPiServer.GoogleAnalytics/Administration

Just blank no html output

I do get to login before though

What can it be?

I do use feature folder setup, but thats just a simple change in DefaultPageController.

Mar 20, 2019 12:53

A routine question: do you see anything in the browser console? 

Mar 20, 2019 13:49

I know that for some certain routes you have to specify default.aspx as content output

For instance /EPiServer/cms/admin/ does not return the admin view but /EPiServer/cms/admin/default.aspx does.

This should however not be part of your problem...

Mar 20, 2019 16:03

Nada in Console.

Nada in log file.

/default.aspx makes it throw 404 "A public action method 'default.aspx' was not found on controller 'EPiServer.Cms.Shell.UI.Controllers.Internal.VisitorGroupsController'."

/index = empty blank

Something is killling it softly, it probably something stupido.

Mar 21, 2019 9:55

How does your <> and <location path="EPiServer"> configuration look like in Web.config?

Mar 21, 2019 10:16

Looks good Mattias, compared with working sites and no diff.

Mar 21, 2019 10:44

File system access rights? :)

Mar 21, 2019 10:51

Full access no diff.

I have same behavior on staging server, so its not just local.

Have i Messed up SiteViewEngine : RazorViewEngine? i don't find anything there too though

Mar 21, 2019 11:01

hos does your RouteTable look like?

Mar 21, 2019 16:50

The RouteTable looks as good as you do Jedi Master Iljuconoks.

39 items.

you have items like

{[ModuleRouteCollection RoutePath="~/EPiServer/EPiServer.GoogleAnalytics/2.1.1", Routes=[EPiServer.GoogleAnalyticsepi-googleanalytics]]}

{[ModuleRouteCollection RoutePath="~/EPiServer/EPiServer.DeveloperTools", Routes=[]]}'

{[ModuleRouteCollection RoutePath="~/episerver", Routes=[EPiServer.Packaging.UI,EPiServer.Search.Cms,AddOn.Edit.ContextMenuOpenInNewTab,EPiServer.DeveloperTools,Shell,CMS,EPiServer.Cms.TinyMce,EPiServer.Forms.UI,EPiServer.Forms,EPiServer.GoogleAnalytics]]}

What more should i be looking for?

Mar 22, 2019 10:16

If you reach out for developer support service for this, I would be happy to look into this :) 

Mar 22, 2019 10:19

Cred to Episerver Dev Support,

After debugging Episerver Source they found out the root cause of this issue is SiteViewEngine is inserted to ViewEngines in the first position:

ViewEngines.Engines.Insert(0, new SiteViewEngine()); // which is default in alloy template to optimize view resolving when using DisplayFor/PropertyFor

So it overrides the episerver ViewEngine.
You can use this instead of:

ViewEngines.Engines.Add(new SiteViewEngine());

We did made some customization in viewengine so maybe not so suprising.


Apr 05, 2019 15:05

Hey I deserve a bit of credit as well ;) (telling you to reach out for Dev support) 

Apr 05, 2019 15:10

To tweak view resolving a little bit, you could insert it right before WebFormViewEngine (if using default MVC setup):

var webFormViewEngine = ViewEngines.Engines.FirstOrDefault(ve => ve.GetType() == typeof(WebFormViewEngine));

if (webFormViewEngine != null)
    var webFormViewEngineIndex = ViewEngines.Engines.IndexOf(webFormViewEngine);
    ViewEngines.Engines.Insert(webFormViewEngineIndex, new SiteViewEngine());
    ViewEngines.Engines.Add(new SiteViewEngine());
Apr 09, 2019 12:42
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* 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.