<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" gd:etag="W/&quot;CkcCSH0-cSp7ImA9WhRRFEk.&quot;"><id>tag:blogger.com,1999:blog-8867426705366512852</id><updated>2011-11-27T16:27:49.359-08:00</updated><category term="asp.net" /><category term="asp 2.0" /><category term="DotNetNuke" /><category term="aspx" /><category term="vb.net" /><category term="Web Services" /><title>Tek-Wise</title><subtitle type="html">Solutions to common and not so common issues encountered by .Net Programmers.</subtitle><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://tek-wise.blogspot.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://tek-wise.blogspot.com/" /><author><name>Larry Bargers</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>5</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/Tek-wise" /><feedburner:info uri="tek-wise" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry gd:etag="W/&quot;D0YGR3c5fCp7ImA9WxNUEkw.&quot;"><id>tag:blogger.com,1999:blog-8867426705366512852.post-3881957643644966318</id><published>2009-11-02T18:25:00.000-08:00</published><updated>2009-11-02T18:25:26.924-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-11-02T18:25:26.924-08:00</app:edited><title>System.NullReferenceException: Object reference not set to an instance of an object</title><content type="html">&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8867426705366512852-3881957643644966318?l=tek-wise.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/0v1_nH-CNM48KCksDQsqWfWHJqs/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/0v1_nH-CNM48KCksDQsqWfWHJqs/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/0v1_nH-CNM48KCksDQsqWfWHJqs/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/0v1_nH-CNM48KCksDQsqWfWHJqs/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Tek-wise/~4/mw4oYP9h7kU" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://tek-wise.blogspot.com/feeds/3881957643644966318/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://tek-wise.blogspot.com/2009/11/systemnullreferenceexception-object.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8867426705366512852/posts/default/3881957643644966318?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8867426705366512852/posts/default/3881957643644966318?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Tek-wise/~3/mw4oYP9h7kU/systemnullreferenceexception-object.html" title="System.NullReferenceException: Object reference not set to an instance of an object" /><author><name>Larry Bargers</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://tek-wise.blogspot.com/2009/11/systemnullreferenceexception-object.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEQBR3cyeip7ImA9WxNUEkw.&quot;"><id>tag:blogger.com,1999:blog-8867426705366512852.post-5925661884274527461</id><published>2009-11-02T17:39:00.000-08:00</published><updated>2009-11-02T17:39:16.992-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-11-02T17:39:16.992-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="DotNetNuke" /><category scheme="http://www.blogger.com/atom/ns#" term="asp.net" /><title>HTTP 500 error message displays instead of ASP error message from 500-100.asp</title><content type="html">&lt;span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; line-height: 16px;"&gt;When a .asp file encounters an error, the following standard HTTP 500 error message is displayed instead of an error returned by the 500-100.asp file:&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; line-height: 16px;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class="kb_errormsgbody" style="-webkit-box-sizing: border-box; border-bottom-color: rgb(127, 186, 226); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(127, 186, 226); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(127, 186, 226); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(127, 186, 226); border-top-style: solid; border-top-width: 12px; margin-bottom: 10px; overflow-x: auto; position: relative;"&gt;&lt;div class="kb_errorcontent" style="-webkit-background-clip: initial; -webkit-background-origin: initial; -webkit-box-sizing: border-box; background-attachment: initial; background-color: white; background-image: initial; background-position: initial initial; background-repeat: initial; border-bottom-color: rgb(127, 186, 226); border-bottom-style: solid; border-bottom-width: 0px; border-left-color: rgb(127, 186, 226); border-left-style: solid; border-left-width: 0px; border-right-color: rgb(127, 186, 226); border-right-style: solid; border-right-width: 0px; border-top-color: rgb(127, 186, 226); border-top-style: solid; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 548px;"&gt;&lt;div class="errormsg" style="-webkit-box-sizing: border-box; color: #333333; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 20px; padding-bottom: 20px; padding-left: 10px; padding-right: 10px; padding-top: 10px; position: relative; width: 548px;"&gt;The page cannot be displayed&amp;nbsp;&lt;br style="-webkit-box-sizing: border-box;" /&gt;There is a problem with the page you are trying to reach and it cannot be displayed.&amp;nbsp;&lt;br style="-webkit-box-sizing: border-box;" /&gt;...&lt;br style="-webkit-box-sizing: border-box;" /&gt;HTTP 500 - Internal server error&amp;nbsp;&lt;br style="-webkit-box-sizing: border-box;" /&gt;Internet Explorer&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; line-height: 16px;"&gt;The .asp file is located on a nondefault Web site that, by default, does not use the 500-100.asp file for error handling.&amp;nbsp;&lt;br style="-webkit-box-sizing: border-box;" /&gt;&lt;br style="-webkit-box-sizing: border-box;" /&gt;&lt;b style="-webkit-box-sizing: border-box;"&gt;Note&lt;/b&gt;&amp;nbsp;This behavior is described in the Internet Information Services (IIS) product documentation at http://localhost/iishelp/iis/htm/core/iiprstop.htm.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 11px; line-height: 16px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 11px; line-height: 16px;"&gt;&lt;b style="-webkit-box-sizing: border-box;"&gt;Note&lt;/b&gt;&amp;nbsp;The 500-100.asp file should not be implemented on production Web sites. The 500-100.asp file may expose custom code to users.&lt;br style="-webkit-box-sizing: border-box;" /&gt;&lt;br style="-webkit-box-sizing: border-box;" /&gt;To use the 500-100.asp file for error handling on the nondefault Web site, perform the following steps:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: small;"&gt;&lt;ol style="-webkit-box-sizing: border-box; position: relative;"&gt;&lt;li style="-webkit-box-sizing: border-box; position: relative;"&gt;Start the Internet Service Manager (ISM), which loads the Internet Information Services snap-in for the Microsoft Management Console (MMC).&lt;/li&gt;
&lt;li style="-webkit-box-sizing: border-box; position: relative;"&gt;Right-click the appropriate Web site, click&amp;nbsp;&lt;b style="-webkit-box-sizing: border-box;"&gt;New&lt;/b&gt;, and then click&amp;nbsp;&lt;b style="-webkit-box-sizing: border-box;"&gt;Virtual Directory&lt;/b&gt;.&lt;/li&gt;
&lt;li style="-webkit-box-sizing: border-box; position: relative;"&gt;In the Virtual Directory Creation Wizard, click&amp;nbsp;&lt;b style="-webkit-box-sizing: border-box;"&gt;Next&lt;/b&gt;. In the&amp;nbsp;&lt;b style="-webkit-box-sizing: border-box;"&gt;Alias&amp;nbsp;&lt;/b&gt;text box, type&lt;span class="userInput" style="-webkit-box-sizing: border-box; font-weight: bold; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 10px;"&gt;IISHelp&lt;/span&gt;, and then click&amp;nbsp;&lt;b style="-webkit-box-sizing: border-box;"&gt;Next&lt;/b&gt;.&lt;/li&gt;
&lt;li style="-webkit-box-sizing: border-box; position: relative;"&gt;When you are prompted for the path to the content directory, click&amp;nbsp;&lt;b style="-webkit-box-sizing: border-box;"&gt;Browse&lt;/b&gt;, select the WINNT\Help\IisHelp folder, and then click&amp;nbsp;&lt;b style="-webkit-box-sizing: border-box;"&gt;Next&lt;/b&gt;.&lt;/li&gt;
&lt;li style="-webkit-box-sizing: border-box; position: relative;"&gt;On the&amp;nbsp;&lt;b style="-webkit-box-sizing: border-box;"&gt;Access Permissions&lt;/b&gt;&amp;nbsp;page, accept all the defaults, click&amp;nbsp;&lt;b style="-webkit-box-sizing: border-box;"&gt;Next&lt;/b&gt;, and then click&lt;b style="-webkit-box-sizing: border-box;"&gt;Finish&lt;/b&gt;.&lt;/li&gt;
&lt;li style="-webkit-box-sizing: border-box; position: relative;"&gt;Right-click the Web site again, and then click&amp;nbsp;&lt;b style="-webkit-box-sizing: border-box;"&gt;Properties&lt;/b&gt;.&lt;/li&gt;
&lt;li style="-webkit-box-sizing: border-box; position: relative;"&gt;On the&amp;nbsp;&lt;b style="-webkit-box-sizing: border-box;"&gt;Custom Errors&lt;/b&gt;&amp;nbsp;tab, select the&amp;nbsp;&lt;strong class="uiterm" style="-webkit-box-sizing: border-box;"&gt;500;100&lt;/strong&gt;&amp;nbsp;error line, and then click&amp;nbsp;&lt;b style="-webkit-box-sizing: border-box;"&gt;Edit Properties&lt;/b&gt;.&lt;/li&gt;
&lt;li style="-webkit-box-sizing: border-box; position: relative;"&gt;In the&amp;nbsp;&lt;b style="-webkit-box-sizing: border-box;"&gt;Message Type&lt;/b&gt;&amp;nbsp;list box, select&amp;nbsp;&lt;b style="-webkit-box-sizing: border-box;"&gt;URL&lt;/b&gt;, and then type&amp;nbsp;&lt;span class="userInput" style="-webkit-box-sizing: border-box; font-weight: bold; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 10px;"&gt;/iisHelp/common/500-100.asp&lt;/span&gt;&amp;nbsp;in the&amp;nbsp;&lt;b style="-webkit-box-sizing: border-box;"&gt;URL&amp;nbsp;&lt;/b&gt;text box.&lt;/li&gt;
&lt;li style="-webkit-box-sizing: border-box; position: relative;"&gt;Click&amp;nbsp;&lt;b style="-webkit-box-sizing: border-box;"&gt;OK&amp;nbsp;&lt;/b&gt;twice to return to the ISM.&lt;/li&gt;
&lt;/ol&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8867426705366512852-5925661884274527461?l=tek-wise.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/QNH-KJp9GMXzJ_lee2SskIBWSbU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/QNH-KJp9GMXzJ_lee2SskIBWSbU/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/QNH-KJp9GMXzJ_lee2SskIBWSbU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/QNH-KJp9GMXzJ_lee2SskIBWSbU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Tek-wise/~4/sca1KHRUAeQ" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://tek-wise.blogspot.com/feeds/5925661884274527461/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://tek-wise.blogspot.com/2009/11/http-500-error-message-displays-instead.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8867426705366512852/posts/default/5925661884274527461?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8867426705366512852/posts/default/5925661884274527461?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Tek-wise/~3/sca1KHRUAeQ/http-500-error-message-displays-instead.html" title="HTTP 500 error message displays instead of ASP error message from 500-100.asp" /><author><name>Larry Bargers</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://tek-wise.blogspot.com/2009/11/http-500-error-message-displays-instead.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0YGRHczeip7ImA9WxNUEkw.&quot;"><id>tag:blogger.com,1999:blog-8867426705366512852.post-7716369670580780266</id><published>2009-11-02T17:18:00.000-08:00</published><updated>2009-11-02T17:18:45.982-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-11-02T17:18:45.982-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="asp.net" /><title>An "Object reference not set to an instance of an object" error occurs when you try to access data by using ADO Interop on an ASP.NET page</title><content type="html">&lt;span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; line-height: 16px;"&gt;On a computer that has Microsoft .NET Framework 1.0 installed (and that does&amp;nbsp;&lt;i style="-webkit-box-sizing: border-box;"&gt;not&lt;/i&gt;&amp;nbsp;have Microsoft Visual Studio .NET installed), when you try to access data using ADO Interop on an ASP.NET page that resides at an identical site and that is hosted on the same computer, you may receive the following error message:&lt;/span&gt;&lt;br /&gt;
&lt;div class="kb_errormsgbody" style="-webkit-box-sizing: border-box; border-bottom-color: rgb(127, 186, 226); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(127, 186, 226); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(127, 186, 226); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(127, 186, 226); border-top-style: solid; border-top-width: 12px; margin-bottom: 10px; overflow-x: auto; position: relative;"&gt;&lt;div class="kb_errorcontent" style="-webkit-background-clip: initial; -webkit-background-origin: initial; -webkit-box-sizing: border-box; background-attachment: initial; background-color: white; background-image: initial; background-position: initial initial; background-repeat: initial; border-bottom-color: rgb(127, 186, 226); border-bottom-style: solid; border-bottom-width: 0px; border-left-color: rgb(127, 186, 226); border-left-style: solid; border-left-width: 0px; border-right-color: rgb(127, 186, 226); border-right-style: solid; border-right-width: 0px; border-top-color: rgb(127, 186, 226); border-top-style: solid; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 548px;"&gt;&lt;div class="errormsg" style="-webkit-box-sizing: border-box; color: #333333; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 20px; padding-bottom: 20px; padding-left: 10px; padding-right: 10px; padding-top: 10px; position: relative; width: 548px;"&gt;Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="topOfPage" style="-webkit-box-sizing: border-box; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 10px;"&gt;&lt;span style="font-size: xx-small;"&gt;&lt;span class="Apple-style-span" style="font-size: 7px;"&gt;&lt;span class="Apple-style-span" style="font-size: 11px;"&gt;To resolve this problem, register the Adodb.dll file in the global assembly cache (GAC). On a computer where only the .NET Framework is installed, the file Gacutil.exe does not exist.. Either obtain the gacutil file by installing Microsoft .NET Framework SDK, or create a Visual Studio.NET setup project that uses the installer to install the correct components.&lt;br style="-webkit-box-sizing: border-box;" /&gt;&lt;br style="-webkit-box-sizing: border-box;" /&gt;To register Adodb.dll in the GAC, follow these steps:&lt;ol style="-webkit-box-sizing: border-box; position: relative;"&gt;&lt;li style="-webkit-box-sizing: border-box; position: relative;"&gt;Click&amp;nbsp;&lt;strong class="uiterm" style="-webkit-box-sizing: border-box;"&gt;Start&lt;/strong&gt;&amp;nbsp;and then click&amp;nbsp;&lt;strong class="uiterm" style="-webkit-box-sizing: border-box;"&gt;Run&lt;/strong&gt;.&lt;/li&gt;
&lt;li style="-webkit-box-sizing: border-box; position: relative;"&gt;In the&amp;nbsp;&lt;strong class="uiterm" style="-webkit-box-sizing: border-box;"&gt;Run&lt;/strong&gt;&amp;nbsp;dialog box, type the following command, and then click&amp;nbsp;&lt;strong class="uiterm" style="-webkit-box-sizing: border-box;"&gt;OK&lt;/strong&gt;:&lt;br style="-webkit-box-sizing: border-box;" /&gt;&lt;div class="indent" style="-webkit-box-sizing: border-box; padding-bottom: 10px; padding-left: 20px; padding-right: 20px; padding-top: 0px;"&gt;&lt;span class="userInput" style="-webkit-box-sizing: border-box; font-weight: bold; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 10px;"&gt;C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\gacutil /i C:\Program Files\Microsoft.NET\Primary Interop Assemblies\adodb.dll&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8867426705366512852-7716369670580780266?l=tek-wise.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/zuttQmdqUtBs-R73phDRweIgDEc/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/zuttQmdqUtBs-R73phDRweIgDEc/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/zuttQmdqUtBs-R73phDRweIgDEc/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/zuttQmdqUtBs-R73phDRweIgDEc/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Tek-wise/~4/bak15nK_Bz8" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://tek-wise.blogspot.com/feeds/7716369670580780266/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://tek-wise.blogspot.com/2009/11/object-reference-not-set-to-instance-of.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8867426705366512852/posts/default/7716369670580780266?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8867426705366512852/posts/default/7716369670580780266?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Tek-wise/~3/bak15nK_Bz8/object-reference-not-set-to-instance-of.html" title="An &quot;Object reference not set to an instance of an object&quot; error occurs when you try to access data by using ADO Interop on an ASP.NET page" /><author><name>Larry Bargers</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://tek-wise.blogspot.com/2009/11/object-reference-not-set-to-instance-of.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkINQX84fCp7ImA9WxNWEE4.&quot;"><id>tag:blogger.com,1999:blog-8867426705366512852.post-8346280031442101845</id><published>2009-10-08T12:25:00.000-07:00</published><updated>2009-10-08T12:36:30.134-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-10-08T12:36:30.134-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="asp 2.0" /><category scheme="http://www.blogger.com/atom/ns#" term="Web Services" /><category scheme="http://www.blogger.com/atom/ns#" term="asp.net" /><title>ASP.NET Webservices: "The request failed with HTTP status 401: Access Denied." Error</title><content type="html">You may receive the error "The request failed with HTTP status 401: Access Denied." when trying to access a Webservice from your ASP.NET Application.&lt;br /&gt;
&lt;br /&gt;
This normally indicates that Anonymous access has been disabled for the Webservice.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can resolve this issue by either of the following ways:&lt;br /&gt;
&lt;br /&gt;
1. Enabling Anonymous Access in the IIS Directory Security&lt;br /&gt;
&lt;br /&gt;
To do this, the following steps will help you.&lt;br /&gt;
&lt;br /&gt;
1. Click "Start" - "Run" - Type "inetmgr" and press "Ok" or "Enter" Key&lt;br /&gt;
&lt;br /&gt;
2. IIS Control panel opens.&lt;br /&gt;
&lt;br /&gt;
3. Expand the appropriate nodes and navigate to the virtual directory of your Web Service Application.&lt;br /&gt;
&lt;br /&gt;
4. Select the Virtual directory, Right Click and select "Properties"&lt;br /&gt;
&lt;br /&gt;
5. Switch to the "Directory Security" Tab and then Click "Edit".&lt;br /&gt;
&lt;br /&gt;
6. Check the "Anonymous Access" CheckBox.&lt;br /&gt;
&lt;br /&gt;
7. Click "Ok" twice to exit.&lt;br /&gt;
&lt;br /&gt;
This should solve your problem. Happy Coding my friends!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8867426705366512852-8346280031442101845?l=tek-wise.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/4-MJbiGAqNCstNQw6fS84Lg0Xxs/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/4-MJbiGAqNCstNQw6fS84Lg0Xxs/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/4-MJbiGAqNCstNQw6fS84Lg0Xxs/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/4-MJbiGAqNCstNQw6fS84Lg0Xxs/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Tek-wise/~4/pIKN1sa2_1E" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://tek-wise.blogspot.com/feeds/8346280031442101845/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://tek-wise.blogspot.com/2009/10/aspnet-webservices-request-failed-with.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8867426705366512852/posts/default/8346280031442101845?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8867426705366512852/posts/default/8346280031442101845?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Tek-wise/~3/pIKN1sa2_1E/aspnet-webservices-request-failed-with.html" title="ASP.NET Webservices: &quot;The request failed with HTTP status 401: Access Denied.&quot; Error" /><author><name>Larry Bargers</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://tek-wise.blogspot.com/2009/10/aspnet-webservices-request-failed-with.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkEBRHw5fSp7ImA9WxJbEkU.&quot;"><id>tag:blogger.com,1999:blog-8867426705366512852.post-8814952962049849112</id><published>2009-07-22T08:49:00.000-07:00</published><updated>2009-07-22T09:37:35.225-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-07-22T09:37:35.225-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="aspx" /><category scheme="http://www.blogger.com/atom/ns#" term="vb.net" /><category scheme="http://www.blogger.com/atom/ns#" term="DotNetNuke" /><category scheme="http://www.blogger.com/atom/ns#" term="asp.net" /><title>ASPNET: Make sure that the class defined in this code file matches the 'inherits' attribute, and that it extends the correct base class</title><content type="html">In asp.net simply changing the attribute "codefile" to "codebehind" should do the trick.&lt;br /&gt;&lt;br /&gt;Change:&lt;br /&gt;&lt;br /&gt;Control language = "VB" Inherits="Bold.Modules.SupportCase.ViewSupportCases" &lt;strong&gt;Codefile&lt;/strong&gt;="ViewSupportCases.ascx.vb"  AutoEventWireup="false" Explicit="True" &lt;br /&gt;&lt;br /&gt;To:&lt;br /&gt;&lt;br /&gt;Control language = "VB" Inherits="Bold.Modules.SupportCase.ViewSupportCases" &lt;strong&gt;Codebehind&lt;/strong&gt;="ViewSupportCases.ascx.vb"  AutoEventWireup="false" Explicit="True" &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;CodeBehind &lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Specifies the name of the compiled file that contains the class associated with the page. This attribute is not used at run time. &lt;br /&gt; &lt;br /&gt;This attribute is included for compatibility with previous versions of ASP.NET, to implement the code-behind feature. In ASP.NET version 2.0, you should instead use the CodeFile attribute to specify the name of the source file, along with the Inherits attribute to specify the fully qualified name of the class.&lt;br /&gt; &lt;br /&gt;&lt;strong&gt;CodeFile &lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Specifies a path to the referenced code-behind file for the page. This attribute is used together with the Inherits attribute to associate a code-behind source file with a Web page. The attribute is valid only for compiled pages.&lt;strong&gt;&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8867426705366512852-8814952962049849112?l=tek-wise.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/NYNpDZ_MpT5M5F7s3MYJsPf64N0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/NYNpDZ_MpT5M5F7s3MYJsPf64N0/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/NYNpDZ_MpT5M5F7s3MYJsPf64N0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/NYNpDZ_MpT5M5F7s3MYJsPf64N0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Tek-wise/~4/yOmiztooVuo" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://tek-wise.blogspot.com/feeds/8814952962049849112/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://tek-wise.blogspot.com/2009/07/aspnet-make-sure-that-class-defined-in.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8867426705366512852/posts/default/8814952962049849112?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8867426705366512852/posts/default/8814952962049849112?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Tek-wise/~3/yOmiztooVuo/aspnet-make-sure-that-class-defined-in.html" title="ASPNET: Make sure that the class defined in this code file matches the 'inherits' attribute, and that it extends the correct base class" /><author><name>Larry Bargers</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://tek-wise.blogspot.com/2009/07/aspnet-make-sure-that-class-defined-in.html</feedburner:origLink></entry></feed>

