Virtual Happy Hour this month, Jun 28, we'll be getting a sneak preview at our soon to launch SaaS CMS!

Try our conversational search powered by Generative AI!

Cannot call action method 'Void GetFormExternalResources exception during MapMvcAttributeRoutes() after update to 4.24.3


After updating forms to 4.23.3, my website throws the following exception during routeCollection.MapMvcAttributeRoutes():

System.ArgumentException: 'Cannot call action method 'Void GetFormExternalResources(System.Collections.Generic.List`1[System.String] ByRef, System.Collections.Generic.List`1[System.String] ByRef)' on controller 'EPiServer.Forms.Controllers.FormContainerBlockController' because the parameter 'System.Collections.Generic.List`1[System.String]& scripts' is passed by reference.
Parameter name: methodInfo'

Has anyone else encountered this, how to resolve the issue?

May 23, 2019 10:27


Which version you upgraded from ?

Method GetFormExternalResources is moved to pulblic from version 4.24.3 (protected -> public) and it still has the same parameter signature.

Do you have any custom code that calls the method ?

Edited, May 24, 2019 12:21

Originally I've updated from 4.16.0, but I then tried updating gradually and up to 4.24.2 everything was working fine.

No, to my knowledge there isn't any code that calls the method.

May 24, 2019 12:27

This should be a bug and we're working on it.

Thanks for letting us know !

May 29, 2019 12:35

Hi, how is it going with the bug, have the same issue fter upgrading

Jun 18, 2019 13:42

Forms 4.25.0 is now available on nuget feed and the bug has been fixed in this version.

Jun 21, 2019 11:39
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.