Friday, December 03, 2010

ASP.NET MVC: The model of type ‘xxx’ could not be updated

The actual exception thrown is System.InvalidOperationException.

Set a breakpoint where the exception occurs. If you are calling UpdateModel, chances are you will find one or more validation exceptions in the ModelState.

Wouldn’t it be nice if the error message just said so?

1 comment:

tike mik said...

Thailand is indeed a country of great open-mindedness with regards to human sexuality, but until the government recognizes all of its citizens' rights, under the law, it will never be as free and progressive as some visitors are led to believe. At the same time, maybe the mere acceptance of Ladyboys is the first step in conquering discrimination on the basis of sexual orientation.

Asian Teen Ladyboys