<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.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>Access Databases and AccessDataSource Control</title><link>http://forums.asp.net/55.aspx</link><description>Discuss using Access as a data store for ASP.NET, and the AccessDataSource control.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: AccessDataSource - Object reference not set to an instance of an object</title><link>http://forums.asp.net/thread/3379093.aspx</link><pubDate>Mon, 31 Aug 2009 16:39:58 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3379093</guid><dc:creator>pdg</dc:creator><author>pdg</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3379093.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=55&amp;PostID=3379093</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I&amp;#39;ve found on &lt;a href="http://social.msdn.microsoft.com/Forums/en-US/vbgeneral/thread/d4e4d81a-f1b4-468f-b758-1522a2ccd790" target="_blank"&gt;this page the solution&lt;/a&gt;. I was experiencing the same problem and this fixed it completely. Here I copy the steps described by the original author:&lt;/p&gt;
&lt;p&gt;1) Run regedit.exe;&lt;br /&gt;2) Browse to the location &amp;quot;HKEY_CLASSES_ROOT\CLSID\{F9AE8980-7E52-11d0-8964-00C04FD611D7}&amp;quot; in the tree;&lt;br /&gt;3) If there is a child node in the tree called &amp;quot;ProgID&amp;quot;, then you are indeed experiencing a different problem - let me know if this is the case.&lt;/p&gt;
&lt;p&gt;Otherwise, follow these steps to modify the registry:&lt;/p&gt;
&lt;p&gt;1) Right click the node and select &amp;quot;New &amp;gt; Key&amp;quot;;&lt;br /&gt;2) Enter &amp;quot;ProgID&amp;quot; as the name;&lt;br /&gt;3) Go to the main window and double click &amp;quot;(Default)&amp;quot;;&lt;br /&gt;4) Enter the value &amp;quot;MSIDXS.1&amp;quot;;&lt;/p&gt;</description></item><item><title>Re: AccessDataSource - Object reference not set to an instance of an object</title><link>http://forums.asp.net/thread/3349485.aspx</link><pubDate>Sat, 15 Aug 2009 14:08:20 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3349485</guid><dc:creator>grovelli</dc:creator><author>grovelli</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3349485.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=55&amp;PostID=3349485</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi, are you the same HansV from The Lounge we all love and cherish?&lt;img title="Innocent" border="0" alt="Innocent" src="http://forums.asp.net/tiny_mce/jscripts/tiny_mce/plugins/emotions/img/smiley-innocent.gif" /&gt;&lt;/p&gt;</description></item><item><title>Re: AccessDataSource - Object reference not set to an instance of an object</title><link>http://forums.asp.net/thread/3349477.aspx</link><pubDate>Sat, 15 Aug 2009 14:00:03 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3349477</guid><dc:creator>grovelli</dc:creator><author>grovelli</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3349477.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=55&amp;PostID=3349477</wfw:commentRss><description>&lt;p&gt;Hi, I have exactly your same couple of problems:&lt;br /&gt;Object reference not set to an instance of an object and configuring the Select Statement dialog box.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m on XP SP3 and use Visual Web Developer 2008 Express, have you been able to find a solution to either?&lt;/p&gt;</description></item><item><title>Re: AccessDataSource - Object reference not set to an instance of an object</title><link>http://forums.asp.net/thread/3267781.aspx</link><pubDate>Wed, 01 Jul 2009 02:39:26 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3267781</guid><dc:creator>JESNELL</dc:creator><author>JESNELL</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3267781.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=55&amp;PostID=3267781</wfw:commentRss><description>&lt;p&gt;Correct...that&amp;#39;s what I should be see or start out with, but I don&amp;#39;t. It goes straight to the &amp;quot;Define Custom Statements or Stored Procedures&amp;quot; dialog box and the Previous button just takes me back to selecting a database. I&amp;#39;m guessing that my original issue with importing the .mdb is the source of the problem. &lt;/p&gt;
&lt;p&gt;I&amp;#39;m only guessing, since I don&amp;#39;t enought about all this yet, but could there be something wrong in the way my VS2008, IIS, or Vista Ultimate is set up or configured that&amp;#39;s causing this? I bought several books on VS2008 and ASP.Net to learn all this, and have gone through them all, as well as the web and various forums to figure out this issue. But nothing I&amp;#39;ve read touches on this issue, as though it&amp;#39;s such a simple thing to do, it can&amp;#39;t go wrong. So I&amp;#39;m thinking maybe something is wrong with setup or configuration.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll watch the tutorials you&amp;#39;ve linked to and see if that sheds any light on things and let you know.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;</description></item><item><title>Re: AccessDataSource - Object reference not set to an instance of an object</title><link>http://forums.asp.net/thread/3267640.aspx</link><pubDate>Tue, 30 Jun 2009 23:55:17 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3267640</guid><dc:creator>hans_v</dc:creator><author>hans_v</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3267640.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=55&amp;PostID=3267640</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/fan/images/icon-quote.gif"&gt; &lt;strong&gt;JESNELL:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;BUT, in the next step, according to the book, I would get the &amp;quot;Configure the Select Statement&amp;quot; dialog box. I don&amp;#39;t get that. Instead, I&amp;#39;m getting the &amp;quot;Define Custom Statements or Stored Procedures&amp;quot; dialog box&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Strange! On that page you have a &amp;#39;Previous&amp;#39; Button. In you click on that buttonm you should be on the &amp;#39;Configure the Select Statement&amp;#39;. When you click on the radiobutton &amp;#39;Specify columns from a table or a view&amp;#39; you should be on the right track again.....&lt;/p&gt;
&lt;p&gt;A tutorial which works with Access can be found &lt;a href="http://www.maconstateit.net/tutorials/aspnet20/" target="_blank"&gt;here&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;And maybe you could watch some video&amp;#39;s on this site &lt;a href="http://www.asp.net/learn/videos/" target="_blank"&gt;here&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;like&amp;nbsp;&lt;a href="http://www.asp.net/learn/videos/video-49.aspx"&gt;http://www.asp.net/learn/videos/video-49.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;They use SQL server Express, but for Access it works more or less the same&lt;/p&gt;
&lt;p&gt;And recently I posted another topic on some Access tutorials...&lt;/p&gt;
&lt;p&gt;&lt;a href="http://forums.asp.net/t/1434946.aspx#3230330"&gt;http://forums.asp.net/t/1434946.aspx#3230330&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: AccessDataSource - Object reference not set to an instance of an object</title><link>http://forums.asp.net/thread/3267625.aspx</link><pubDate>Tue, 30 Jun 2009 23:38:03 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3267625</guid><dc:creator>JESNELL</dc:creator><author>JESNELL</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3267625.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=55&amp;PostID=3267625</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/fan/images/icon-quote.gif"&gt; &lt;strong&gt;hans_v:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;
&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/fan/images/icon-quote.gif"&gt; &lt;strong&gt;jesnell:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt; 
&lt;p&gt;In VS, when I right-click on the App_Data folder and select &amp;quot;Add Existing Item...&amp;quot;, then navigate to and select the .mdb file and try to add it,&amp;nbsp;I get the error message:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;quot;An error occurred while processing the local data file:&lt;br /&gt;Object reference not set to an instance of an object.&amp;quot;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;ANd what if you just add the mdb to the App_Data folder in Windows Explorer, and then click the refresh button in VS Explorer?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Hans,&lt;/p&gt;
&lt;p&gt;Using the method you described does allow me to bring it in to App_Data folder, just like &amp;quot;Add Existing Item...&amp;quot; does. The only difference was that using Windows Explorer didn&amp;#39;t give VS a chance to throw the error message. But when following the examples in my book to play with the .mdb, everything is thrown off course. I&amp;#39;ll describe below in more detail:&lt;/p&gt;
&lt;p&gt;If &amp;quot;Add Existing Item...&amp;quot; worked properly, the next step would be to add and configure the AccessDataSource control on the sample web page, using the &amp;quot;Configure Data Source&amp;quot; in the control&amp;#39;s menu. According to the book, that would lead me to &amp;quot;Choose a Database&amp;quot; dialog box and I choose the .mdb. That always worked fine. BUT, in the next step, according to the book, I would get the &amp;quot;Configure the Select Statement&amp;quot; dialog box. I don&amp;#39;t get that. Instead, I&amp;#39;m getting the &amp;quot;Define Custom Statements or Stored Procedures&amp;quot; dialog box. And that&amp;#39;s where I get lost because it deviates from the book&amp;#39;s lessons.&lt;/p&gt;
&lt;p&gt;I just don&amp;#39;t know enough about all this to figure my way around it, which is why I&amp;#39;m following this book to learn it...LOL. If the lessons go off track like this, I&amp;#39;m lost.&lt;/p&gt;
&lt;p&gt;Any other help thrown my way is greatly appreciated.&lt;/p&gt;</description></item><item><title>Re: AccessDataSource - Object reference not set to an instance of an object</title><link>http://forums.asp.net/thread/3265873.aspx</link><pubDate>Tue, 30 Jun 2009 07:40:19 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3265873</guid><dc:creator>hans_v</dc:creator><author>hans_v</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3265873.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=55&amp;PostID=3265873</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/fan/images/icon-quote.gif"&gt; &lt;strong&gt;jesnell:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt; 
&lt;p&gt;In VS, when I right-click on the App_Data folder and select &amp;quot;Add Existing Item...&amp;quot;, then navigate to and select the .mdb file and try to add it,&amp;nbsp;I get the error message:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;quot;An error occurred while processing the local data file:&lt;br /&gt;Object reference not set to an instance of an object.&amp;quot;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;ANd what if you just add the mdb to the App_Data folder in Windows Explorer, and then click the refresh button in VS Explorer?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;</description></item><item><title>Re: AccessDataSource - Object reference not set to an instance of an object</title><link>http://forums.asp.net/thread/3265292.aspx</link><pubDate>Tue, 30 Jun 2009 00:29:27 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3265292</guid><dc:creator>JESNELL</dc:creator><author>JESNELL</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3265292.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=55&amp;PostID=3265292</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/fan/images/icon-quote.gif"&gt; &lt;strong&gt;hans_v:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;
&lt;p&gt;&amp;nbsp;Although I cannot recreate what your are describing, I might have something what you could do. Since you&amp;#39;ve downloaded the database, it could be that it is blocked. Can you rightclick the database and choose properties. On the bottom of the general tab, it could be that you see:&lt;/p&gt;
&lt;p&gt;&amp;quot;This file came from another computer and might be blocked&amp;quot;. If you do, click on the unblock button&lt;/p&gt;
&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Hans,&lt;/p&gt;
&lt;p&gt;Thanks for your response. You were correct that the file was set to blocked and I followed your directions to unblock it. But it did not solve the issue. I still get the same error message.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: AccessDataSource - Object reference not set to an instance of an object</title><link>http://forums.asp.net/thread/3263688.aspx</link><pubDate>Mon, 29 Jun 2009 09:08:07 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3263688</guid><dc:creator>hans_v</dc:creator><author>hans_v</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3263688.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=55&amp;PostID=3263688</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Although I cannot recreate what your are describing, I might have something what you could do. Since you&amp;#39;ve downloaded the database, it could be that it is blocked. Can you rightclick the database and choose properties. On the bottom of the general tab, it could be that you see:&lt;/p&gt;
&lt;p&gt;&amp;quot;This file came from another computer and might be blocked&amp;quot;. If you do, click on the unblock button&lt;/p&gt;</description></item><item><title>AccessDataSource - Object reference not set to an instance of an object</title><link>http://forums.asp.net/thread/3262979.aspx</link><pubDate>Sun, 28 Jun 2009 23:45:36 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3262979</guid><dc:creator>JESNELL</dc:creator><author>JESNELL</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3262979.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=55&amp;PostID=3262979</wfw:commentRss><description>&lt;p&gt;Greetings,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m new to ASP.Net websites and databases and I&amp;#39;m following&amp;nbsp;examples in a book, as I learn all this. I&amp;#39;m currently following an example in the book on adding and configuring an AccessDataSource and adding a simple&amp;nbsp;Access .mdb that the author created.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Situation&lt;/strong&gt;: In VS2008 Standard Edition (while developing a sample website), I&amp;#39;m trying to bring into the App_Data folder an existing Access 2003 database (.mdb) that the author of the book already created. I downloaded the .mdb to my Desktop from the author&amp;#39;s website. In VS, when I right-click on the App_Data folder and select &amp;quot;Add Existing Item...&amp;quot;, then navigate to and select the .mdb file and try to add it,&amp;nbsp;I get the error message:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;quot;An error occurred while processing the local data file:&lt;br /&gt;Object reference not set to an instance of an object.&amp;quot;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;When I click the &amp;quot;OK&amp;quot; button on the error message, VS still adds the .mdb to the App_Data folder, but then the next steps in the example in the book no longer work or match up. Obviously, there&amp;#39;s some issue with adding the .mdb to the website project, but I can&amp;#39;t figure it out after days of researching through my books, MSDN, and visiting several forums.&lt;/p&gt;
&lt;p&gt;Everything in the book has been working properly up until this point.&lt;/p&gt;
&lt;p&gt;I&amp;#39;d really appreciate if anyone has a solution and explanation of what&amp;#39;s going on, so I can fully understand and correct it and move forward with my learning. Thank You.&lt;/p&gt;
&lt;p&gt;System:&lt;br /&gt;Vista Ultimate x64, SP1&lt;br /&gt;IIS 7 that came with Vista Ult.&lt;br /&gt;VS2008, SP1&lt;br /&gt;ASP.Net 3.5, SP1&lt;/p&gt;</description></item></channel></rss>