<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: MVC Beta to RTW upgrade issue – AddModelError and NullReferenceExceptions</title>
	<atom:link href="http://lostechies.com/jimmybogard/2009/03/27/mvc-beta-to-rtw-upgrade-issue-addmodelerror-and-nullreferenceexceptions/feed/" rel="self" type="application/rss+xml" />
	<link>http://lostechies.com/jimmybogard/2009/03/27/mvc-beta-to-rtw-upgrade-issue-addmodelerror-and-nullreferenceexceptions/</link>
	<description>Strong opinions, weakly held</description>
	<lastBuildDate>Thu, 23 May 2013 23:40:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.2</generator>
	<item>
		<title>By: Sean Yang</title>
		<link>http://lostechies.com/jimmybogard/2009/03/27/mvc-beta-to-rtw-upgrade-issue-addmodelerror-and-nullreferenceexceptions/#comment-1416</link>
		<dc:creator>Sean Yang</dc:creator>
		<pubDate>Thu, 03 Dec 2009 09:35:01 +0000</pubDate>
		<guid isPermaLink="false">/blogs/jimmy_bogard/archive/2009/03/26/mvc-beta-to-rtw-upgrade-issue-addmodelerror-and-nullreferenceexceptions.aspx#comment-1416</guid>
		<description>Thank you very much. It works well. Cool!</description>
		<content:encoded><![CDATA[<p>Thank you very much. It works well. Cool!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Man</title>
		<link>http://lostechies.com/jimmybogard/2009/03/27/mvc-beta-to-rtw-upgrade-issue-addmodelerror-and-nullreferenceexceptions/#comment-1415</link>
		<dc:creator>Man</dc:creator>
		<pubDate>Mon, 19 Oct 2009 16:17:55 +0000</pubDate>
		<guid isPermaLink="false">/blogs/jimmy_bogard/archive/2009/03/26/mvc-beta-to-rtw-upgrade-issue-addmodelerror-and-nullreferenceexceptions.aspx#comment-1415</guid>
		<description>Thank you very much! You&#039;re the boss!</description>
		<content:encoded><![CDATA[<p>Thank you very much! You&#8217;re the boss!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Stewart</title>
		<link>http://lostechies.com/jimmybogard/2009/03/27/mvc-beta-to-rtw-upgrade-issue-addmodelerror-and-nullreferenceexceptions/#comment-1414</link>
		<dc:creator>Jeff Stewart</dc:creator>
		<pubDate>Wed, 30 Sep 2009 17:19:07 +0000</pubDate>
		<guid isPermaLink="false">/blogs/jimmy_bogard/archive/2009/03/26/mvc-beta-to-rtw-upgrade-issue-addmodelerror-and-nullreferenceexceptions.aspx#comment-1414</guid>
		<description>Just ran into this very same problem.  Very, very odd behavior on MVC&#039;s part.  (BTW, my shot-in-the-dark Google search for this problem was &quot;addmodelerror value null&quot;, which led me to this post.)</description>
		<content:encoded><![CDATA[<p>Just ran into this very same problem.  Very, very odd behavior on MVC&#8217;s part.  (BTW, my shot-in-the-dark Google search for this problem was &#8220;addmodelerror value null&#8221;, which led me to this post.)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arjen de Mooij</title>
		<link>http://lostechies.com/jimmybogard/2009/03/27/mvc-beta-to-rtw-upgrade-issue-addmodelerror-and-nullreferenceexceptions/#comment-1413</link>
		<dc:creator>Arjen de Mooij</dc:creator>
		<pubDate>Tue, 25 Aug 2009 09:11:17 +0000</pubDate>
		<guid isPermaLink="false">/blogs/jimmy_bogard/archive/2009/03/26/mvc-beta-to-rtw-upgrade-issue-addmodelerror-and-nullreferenceexceptions.aspx#comment-1413</guid>
		<description>Thx, mate, had exactly the same problem</description>
		<content:encoded><![CDATA[<p>Thx, mate, had exactly the same problem</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pikesville Paesano</title>
		<link>http://lostechies.com/jimmybogard/2009/03/27/mvc-beta-to-rtw-upgrade-issue-addmodelerror-and-nullreferenceexceptions/#comment-1412</link>
		<dc:creator>pikesville Paesano</dc:creator>
		<pubDate>Fri, 17 Jul 2009 13:24:17 +0000</pubDate>
		<guid isPermaLink="false">/blogs/jimmy_bogard/archive/2009/03/26/mvc-beta-to-rtw-upgrade-issue-addmodelerror-and-nullreferenceexceptions.aspx#comment-1412</guid>
		<description>Thanks! you saved me a few aspirin!</description>
		<content:encoded><![CDATA[<p>Thanks! you saved me a few aspirin!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott</title>
		<link>http://lostechies.com/jimmybogard/2009/03/27/mvc-beta-to-rtw-upgrade-issue-addmodelerror-and-nullreferenceexceptions/#comment-1411</link>
		<dc:creator>Scott</dc:creator>
		<pubDate>Fri, 26 Jun 2009 03:45:46 +0000</pubDate>
		<guid isPermaLink="false">/blogs/jimmy_bogard/archive/2009/03/26/mvc-beta-to-rtw-upgrade-issue-addmodelerror-and-nullreferenceexceptions.aspx#comment-1411</guid>
		<description>Top Jimmy, he&#039;s the king!</description>
		<content:encoded><![CDATA[<p>Top Jimmy, he&#8217;s the king!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg McNamara</title>
		<link>http://lostechies.com/jimmybogard/2009/03/27/mvc-beta-to-rtw-upgrade-issue-addmodelerror-and-nullreferenceexceptions/#comment-1410</link>
		<dc:creator>Greg McNamara</dc:creator>
		<pubDate>Fri, 08 May 2009 02:10:00 +0000</pubDate>
		<guid isPermaLink="false">/blogs/jimmy_bogard/archive/2009/03/26/mvc-beta-to-rtw-upgrade-issue-addmodelerror-and-nullreferenceexceptions.aspx#comment-1410</guid>
		<description>Thanks for that workaround Jimmy! Probably saved me hours of time and some of my hair! I&#039;m overriding the DefaultModelBinder which was affecting the ModelState and causing a NullReferenceException on my dropdown list.</description>
		<content:encoded><![CDATA[<p>Thanks for that workaround Jimmy! Probably saved me hours of time and some of my hair! I&#8217;m overriding the DefaultModelBinder which was affecting the ModelState and causing a NullReferenceException on my dropdown list.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason Dentler</title>
		<link>http://lostechies.com/jimmybogard/2009/03/27/mvc-beta-to-rtw-upgrade-issue-addmodelerror-and-nullreferenceexceptions/#comment-1409</link>
		<dc:creator>Jason Dentler</dc:creator>
		<pubDate>Tue, 21 Apr 2009 14:00:52 +0000</pubDate>
		<guid isPermaLink="false">/blogs/jimmy_bogard/archive/2009/03/26/mvc-beta-to-rtw-upgrade-issue-addmodelerror-and-nullreferenceexceptions.aspx#comment-1409</guid>
		<description>Thanks for that fix Jimmy! I had the same issue with DropDownList. For me specifically, a required drop down list was hidden with jQuery before the form was submitted, so it didn&#039;t post a value. The value never made it to the model state. When I added an error saying the field was required, the HtmlHelper assumed it would have a value just because the key existed in the model state dictionary.</description>
		<content:encoded><![CDATA[<p>Thanks for that fix Jimmy! I had the same issue with DropDownList. For me specifically, a required drop down list was hidden with jQuery before the form was submitted, so it didn&#8217;t post a value. The value never made it to the model state. When I added an error saying the field was required, the HtmlHelper assumed it would have a value just because the key existed in the model state dictionary.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steven Harman</title>
		<link>http://lostechies.com/jimmybogard/2009/03/27/mvc-beta-to-rtw-upgrade-issue-addmodelerror-and-nullreferenceexceptions/#comment-1408</link>
		<dc:creator>Steven Harman</dc:creator>
		<pubDate>Fri, 27 Mar 2009 14:43:09 +0000</pubDate>
		<guid isPermaLink="false">/blogs/jimmy_bogard/archive/2009/03/26/mvc-beta-to-rtw-upgrade-issue-addmodelerror-and-nullreferenceexceptions.aspx#comment-1408</guid>
		<description>Jimmy, 
At first glance it seems like this might actually be a bug (where bug could be defined as behavior which breaks the &quot;rule of least surprise&quot;) in asp.net mvc, yes? Or is it just simply a side effect of the way your populating/handling error states?

Either way, it seems like something that might come up often enough to warrant some attention &amp; possibly a fix within the asp.net mvc framework. Should we get Phil on the phone? :)</description>
		<content:encoded><![CDATA[<p>Jimmy,<br />
At first glance it seems like this might actually be a bug (where bug could be defined as behavior which breaks the &#8220;rule of least surprise&#8221;) in asp.net mvc, yes? Or is it just simply a side effect of the way your populating/handling error states?</p>
<p>Either way, it seems like something that might come up often enough to warrant some attention &#038; possibly a fix within the asp.net mvc framework. Should we get Phil on the phone? <img src='http://lostechies.com/jimmybogard/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>
