Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

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

Vote:
 

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?

#204233
May 23, 2019 10:27
Vote:
 

Hi,

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 ?

#204290
Edited, May 24, 2019 12:21
Vote:
 

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.

#204291
May 24, 2019 12:27
Vote:
 

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

Thanks for letting us know !

#204372
May 29, 2019 12:35
Vote:
 

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

#204793
Jun 18, 2019 13:42
Vote:
 

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

#204930
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.