Issues with Html.RenderAction after upgrade to 7.19



We've just upgraded an EPiServer CMS 7 site to the latest version in the '7' branch (7.19).
We're experiencing issues with 'RenderAction' calls in our views which call into actions from ordinary 'Controllers'.
Such a call looks like 

@{Html.RenderAction("Index", "ShareMessage");}

What happens is that the 'Index' action on the current controller/context is called.
This results in a loop and eventually in a StackOverflowException.
It worked prior to the update.

I've tried a lot of possible routing configurations but with no success.

Any ideas are welcome.



Jun 30, 2015 9:35

Links don't work as well. We now only get internal links like '/link/80d184b441ce448aa6a4895a69e22a6a.aspx?id=166&epslanguage=nl'.

Seems something is broken for routing I guess?

Jun 30, 2015 13:31

The issue with the links seems to be resolved. After publishing a single page suddenly 'automagically' all links started to work again i.e. friendly links are generated.

The issue with RenderAction/Action remains.

Jul 01, 2015 10:52

It seems it's only an issue when RenderAction is called from within a block that is rendered from within a ContentArea....

Jul 02, 2015 8:48

Did you ever resolve this issue? I am running into this on an EPiServer 11 project.

Jul 01, 2019 19:28

I'm having the same error for version. Did anyone find a solution?

Mar 09, 2020 11:58

The solution from this topic worked for me - just add 


So your code will look like:

@{Html.RenderAction("Index", "ShareMessage", new {controllerType = ""});}
Mar 10, 2020 7:37
* 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.