Google Groups Home
Help | Sign in
Not registered error message
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
pgonza02  
View profile
 More options Jun 11, 3:01 pm
Newsgroups: microsoft.public.data.oledb
From: pgonza02 <pgonz...@discussions.microsoft.com>
Date: Wed, 11 Jun 2008 12:01:06 -0700
Local: Wed, Jun 11 2008 3:01 pm
Subject: Not registered error message
Hi,
I am trying to deploy a really simple application built on Visual Studio
2008 using framework 3.5 that consumes an Access 2007 database.
When I deploy it and run my app, I get the following error:
The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine

Here is the code that's causing the error:
private void ConnectToDB()
    {
      try
      {
        if (_dbConnection.State != ConnectionState.Open)
        {
          _dbConnection.ConnectionString =
global::MCIS0685.Properties.Settings.Default.MCIS0685DBConnectionString;
          _dbConnection.Open();
        }
      }
      catch(Exception ex)
      {
        MessageBox.Show("Unable to connect to database. Error:\n" +
ex.Message,
            "Database Connect", MessageBoxButtons.OK, MessageBoxIcon.Error);
      }
    }
The connection variable is defined as:
private OleDbConnection _dbConnection = new OleDbConnection();

This is the configuration file:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <configSections>
    </configSections>
    <connectionStrings>
        <add name="MCIS0685.Properties.Settings.MCIS0685DBConnectionString"
            connectionString="Provider=Microsoft.ACE.OLEDB.12.0;Data
Source=MCIS0685DB.accdb"
            providerName="System.Data.OleDb" />
    </connectionStrings>
</configuration>

The DB file is in the same folder as the executable assembly.

Any ideas?
TIA


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Erland Sommarskog  
View profile
 More options Jun 11, 5:55 pm
Newsgroups: microsoft.public.data.oledb
From: Erland Sommarskog <esq...@sommarskog.se>
Date: Wed, 11 Jun 2008 14:55:56 -0700
Local: Wed, Jun 11 2008 5:55 pm
Subject: Re: Not registered error message

pgonza02 (pgonz...@discussions.microsoft.com) writes:
> I am trying to deploy a really simple application built on Visual Studio
> 2008 using framework 3.5 that consumes an Access 2007 database. When I
> deploy it and run my app, I get the following error: The
> 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local
> machine

Not that this is my area, but my interpretation of the error message is
that the ACE provider is not installed. As far as I know, this is a
separate download, and nothing which is installed with Access.

--
Erland Sommarskog, SQL Server MVP, esq...@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books...
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
pgonza02  
View profile
 More options Jun 12, 7:58 am
Newsgroups: microsoft.public.data.oledb
From: pgonza02 <pgonz...@discussions.microsoft.com>
Date: Thu, 12 Jun 2008 04:58:00 -0700
Subject: Re: Not registered error message
Yes, I realized that the Framework does not include the Access engine.
I whish there was a way for the VS install project to detect the dependency
and include it. Right now I'm just adding instructions to downalod the engine
if Access 2007 is not installed on the machine.
If this was a more sofisticated application I would probably right some code
to detect that and download it or include it in the install.

Thanks for the info.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google