RuntimeBinderException: 'System.Dynamic.DynamicObject'does not contain a definition for 'Modal'

Question: How do you solve this error in Asp.Net 6 Runtime Binder Exception. This error seems to only happen on runtime. The Error states "RuntimeBinderException: 'System.Dynamic.DynamicObject'does not contain a definition for 'Modal'".


Please Login to see the rest of the answer

Answer: This error is due to a null object, make sure that the Object you are binding to the ViewBag.MyObect = MyOBJ is not empty. Check for null exception before you do your binding.



Write an Article
If you log in, you will be notified when someone leaves a comment.

Other users would like to know if this solution helped you.


© 2022 - ErnesTech - Privacy