Previous Next

Thread: Cannot access my MS access database with IIS7

Last post 09-28-2008 12:42 PM by sparco87. 2 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (3 items)

Sort Posts:

  • 09-24-2008, 9:11 PM

    • sparco87
    • Not Ranked
    • Joined on 08-07-2007, 6:47 PM
    • Posts 2

    Cannot access my MS access database with IIS7

    Hey everyone... I am playing around with II7 and I added a website I have been doing in .net2.0 to the IIS. When I run this site from Visual Studio it works fine. When I try to run the site from IIS7 I get an error saying "Object Reference not set to an instance of an object" this error occurs when I try to read from my database. The only thing I can figure is I am not gaining access to the database. How do I fix this? Thanks a ton for your help
  • 09-27-2008, 11:25 PM In reply to

    Re: Cannot access my MS access database with IIS7

    The error is more related to code than connecting to a database.  If you don't think it's connecting to your database, you would see errors for permissions.  You can enable auditing in the local security policy,  audit failures and see if there is an error in the security event log.  Also, Process monitor from sysinternals can help detect issues related to folder / file security. 

    Steve Schofield
    Windows Server MVP - IIS
    http://weblogs.asp.net/steveschofield

    http://www.IISLogs.com
    Log archival solution
    Install, Configure, Forget
  • 09-28-2008, 12:42 PM In reply to

    • sparco87
    • Not Ranked
    • Joined on 08-07-2007, 6:47 PM
    • Posts 2

    Re: Cannot access my MS access database with IIS7

    I don't think it is an error with the code... If I run it from Visual Studio 2005 everything works fine. I have the MS access database in a folder inside my website called DB and my connection string points to that. If it was a code error I wouldn't be able to run it from Visual Studio I would think right?
Page 1 of 1 (3 items)
Page view counter