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'".

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.



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

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


© 2023 - ErnesTech LLC- Privacy