Issues with Html.RenderAction after upgrade to 7.19

Vote:
 

Hi,

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.
Thanks!

Regards,

Robert.

#123248
Jun 30, 2015 9:35
Vote:
 

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?

#123266
Jun 30, 2015 13:31
Vote:
 

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.

#123306
Jul 01, 2015 10:52
Vote:
 

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

#123344
Jul 02, 2015 8:48
Vote:
 

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

#205204
Jul 01, 2019 19:28
Vote:
 

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

#218244
Mar 09, 2020 11:58
Vote:
 

The solution from this https://world.episerver.com/forum/developer-forum/-Episerver-75-CMS/Thread-Container/2016/3/calling-a-child-action-from-block-view-episerver-82/ topic worked for me - just add 

controllerType=""

So your code will look like:

@{Html.RenderAction("Index", "ShareMessage", new {controllerType = ""});}
#218285
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.