Extract snippent causing error

0
I am extracting a new snippet from a page in MX 9.24.1  when i run the project i get error:    Unable to cast object of type 'Mendix.Modeler.WebUI.Forms.Documents.Pages.Page' to type 'Mendix.Modeler.WebUI.Forms.Documents.Snippets.Snippet'
asked
2 answers
2

I just ran into this one with 9.24.2. In my case the snippet contains a checkbox with an on-change event handler that causes the issue.

 

Remove the event handler and start the app (start is probably obsolete here). Then add the event handler again and it works again.

 

Or upgrade to 9.24.5. This is from the 9.24.5 release notes:

  • We fixed an issue that caused an error when deploying an app if a snippet contained a checkbox with an on-change action that used a snippet parameter. (Ticket 191010)

 

answered
0

There have been some fixes related to snippets in 9.24.2 and 9.24.3. See the release notes. They do not describe your exact problem, but give it a go. Download 9.24.3 and see if this bug is gone.

If not, than see if you can reproduce this error in a new project. If so, open a ticket at support.mendix.com, providing them your test-project. They will likely fix this problem.

answered