Results 1 to 4 of 4

Thread: can't connect to a database in Vista?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2005
    Posts
    257

    can't connect to a database in Vista?

    One of my testers is testing my program that imports an XML file and puts all the data into correct fields in an Access database. He said on his Vista laptop he got an error saying:
    "Microsoft.jet.OLEDB.4.0 provider is not registered on local machine"

    I know you don't have to have Access installed to run my program and I'm pretty sure all the OLEDB objects are in the .NET framework so why is it saying that?
    I tried to end process on Visual Studio 2005
    but PETA stopped me saying it's smart enough
    to be a living creature

  2. #2
    Fanatic Member
    Join Date
    Aug 2006
    Location
    In my head
    Posts
    913

    Re: can't connect to a database in Vista?

    I had this error when trying to build/run a project on my 64bit vista laptop. I had to go into my project properties and make sure it was set to compile for the 32 bit platform specifically.

    HTH!!

    D
    Platforms of choice: Visual Studio 2005/2008 Professional : Visual Studio 2010 Enterprise : PHP - Notepad++/WAMP

    Please Rate If I helped you.
    Please remember to mark threads as closed if your issue has been resolved.

    Reserved Words in Access | Connection Strings

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2005
    Posts
    257

    Re: can't connect to a database in Vista?

    I know I've seen that option somewhere before when I was working on another program but now I sure can't find it it doesn't seem to be in project properties. They do have what type of CPU to target but no 32/64 bit picker. Okay, I give up, where's it at? :P
    I tried to end process on Visual Studio 2005
    but PETA stopped me saying it's smart enough
    to be a living creature

  4. #4
    Fanatic Member
    Join Date
    Aug 2006
    Location
    In my head
    Posts
    913

    Re: can't connect to a database in Vista?

    IIRC you have to go to project properties, then the compile tab. There should be an advanced button there and either at the bottom or near the bottom is a "Target CPU" combobox. Default is any which usually uses whatever is installed on the machine. Try changing it there and then see if that helps.

    D
    Platforms of choice: Visual Studio 2005/2008 Professional : Visual Studio 2010 Enterprise : PHP - Notepad++/WAMP

    Please Rate If I helped you.
    Please remember to mark threads as closed if your issue has been resolved.

    Reserved Words in Access | Connection Strings

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width