London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
AI OnAI Off
London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
EPiServer CMS version: 11
Hi
I am trying to call another block controller Index method from view of the page.
Here is the code which calls the action method of the FileuploadBlock controller.
Here is the Index method of the FileuploadBlock controller
It work good in success flow but if modelstate is not valid and I have to show the page view again, then it gives me this error:
EPiServer.Core.TypeMismatchException: 'The routed data is of type 'x.Models.Pages.NewMessagePage' and the binding context 'currentContent' is null, cannot bind any value to type 'x.Models.Blocks.FileuploadBlock'.'
Hope someone can answer this.