An item with the same key has already been added (MVC same property name error)

http://stackoverflow.com/questions/5648060/an-item-with-the-same-key-has-already-been-added

A fellow developer kept having this odd key error in an MVC application.  Turned out they were inheriting from a class that contained a property with the same name in both classes.  When trying to post to an ActionResult only then would it throw that "same key exists" run time error.  Changing the property name fixed the issue.

Comments

Popular posts from this blog

Asp.net Publishing Broke Site - "App_WebReferences is not allowed because the application is precompiled"

Telerik - Custom Group Footers In RadGrid