<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Object reference instance error and the web.config</title><link>http://weblogs.asp.net/dburke/archive/2004/04/27/121161.aspx</link><description>Problem Your app is looking for an appsetting value in the web.config and when it isn't found generates the error Object reference not set to an instance of an object. Resolution Add the friggen' appsetting value Analysis Wooo-wee! This is a humdinger</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>re: Object reference instance error and the web.config</title><link>http://weblogs.asp.net/dburke/archive/2004/04/27/121161.aspx#121427</link><pubDate>Tue, 27 Apr 2004 20:54:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:121427</guid><dc:creator>Travis</dc:creator><author>Travis</author><description>Someone at MSDN expained in a blog article why they had to make this Exception so generic.  Damn, I wish I could find it.  I'll keep searching.&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=121427" width="1" height="1"&gt;</description></item><item><title>re: Object reference instance error and the web.config</title><link>http://weblogs.asp.net/dburke/archive/2004/04/27/121161.aspx#121248</link><pubDate>Tue, 27 Apr 2004 18:20:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:121248</guid><dc:creator>Dave Burke</dc:creator><author>Dave Burke</author><description>Phil, from experience I've learned to keep my expectations pretty low.  Yes, that's a great idea.&lt;br&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=121248" width="1" height="1"&gt;</description></item><item><title>re: Object reference instance error and the web.config</title><link>http://weblogs.asp.net/dburke/archive/2004/04/27/121161.aspx#121241</link><pubDate>Tue, 27 Apr 2004 18:14:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:121241</guid><dc:creator>Phil Winstanley</dc:creator><author>Phil Winstanley</author><description>That error is a pain in the ass wherever it occurs, could it really be that hard to go: -&lt;br&gt;&lt;br&gt;Object reference (&amp;lt;THE OBJECT NAME&amp;gt;) not set to an instance of an object. &lt;br&gt;&lt;br&gt;:)&lt;br&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=121241" width="1" height="1"&gt;</description></item><item><title>re: Object reference instance error and the web.config</title><link>http://weblogs.asp.net/dburke/archive/2004/04/27/121161.aspx#121228</link><pubDate>Tue, 27 Apr 2004 18:02:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:121228</guid><dc:creator>Dave Burke</dc:creator><author>Dave Burke</author><description>SectionHandler?  Good idea. Thanks, Karl!  I will investigate.&lt;br&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=121228" width="1" height="1"&gt;</description></item><item><title>re: Object reference instance error and the web.config</title><link>http://weblogs.asp.net/dburke/archive/2004/04/27/121161.aspx#121194</link><pubDate>Tue, 27 Apr 2004 17:14:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:121194</guid><dc:creator>Karl</dc:creator><author>Karl</author><description>The ASP.Net 2.0 forums use a custom SectionHandler which I find helps elimiate a lot of problems with web.config.  For your case it would isolate the loading of values to specific function, which would help debug.  you might want to take a look at what they do.&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=121194" width="1" height="1"&gt;</description></item></channel></rss>