Home RunTimeBinderException in asp.net using mvc5
 Hey I am just badly stuck in this error from the past one week. Actually I am retrieving all the "posts" in my controller class and then in "view" class i am trying to access the attributes of the "posts" object but I am getting this error when i run it. "Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: ''object' does not contain a definition for 'propertyName''  Kindly help me with his. i am doing this using viewbag. var x in viewbag.posts when i debug i get all the fields one whole object of different posts in "a" but when i do a.anyPropertName, the compiler hits the above error. Thanks in anticipation