Class Not registered error - ADO DAO RDO RDS

This is a discussion on Class Not registered error - ADO DAO RDO RDS ; Hello All, In my application i am trying to create access database. I am creating an instance of catalogptr using "CreateInstance". It gets created successfully. After that when I create the database using "Create" function, It gives me an exception ...

+ Reply to Thread
Results 1 to 4 of 4

Class Not registered error

  1. Default Class Not registered error

    Hello All,

    In my application i am trying to create access database.
    I am creating an instance of catalogptr using "CreateInstance". It
    gets created successfully. After that when I create the database using
    "Create" function, It gives me an exception saying "Class not
    registered".

    My connection string is:
    "Provider='Microsoft.Jet.OLEDB.4.0';Data Source='d:\info.mdb';" and
    the OS i am getting error on is Windows 2003 enterprise edition.

    hr = m_pCatalog.CreateInstance(__uuidof(Catalog));
    if(SUCCEEDED(hr))
    {
    m_pCatalog->Create(strConnectionString);

    4th line gives the exception.

    Can anybody tell me the problem??

    Rgds
    Alok Bhatnagar


  2. Default Re: Class Not registered error

    bhatnagar.alok schrieb:
    > Hello All,
    >
    > In my application i am trying to create access database.
    > I am creating an instance of catalogptr using "CreateInstance". It
    > gets created successfully. After that when I create the database using
    > "Create" function, It gives me an exception saying "Class not
    > registered".
    >
    > My connection string is:
    > "Provider='Microsoft.Jet.OLEDB.4.0';Data Source='d:\info.mdb';" and
    > the OS i am getting error on is Windows 2003 enterprise edition.
    >
    > hr = m_pCatalog.CreateInstance(__uuidof(Catalog));
    > if(SUCCEEDED(hr))
    > {
    > m_pCatalog->Create(strConnectionString);
    >
    > 4th line gives the exception.
    >
    > Can anybody tell me the problem??
    >
    > Rgds
    > Alok Bhatnagar
    >

    The single quotes in your connection string look suspicious
    to me. I'd try

    "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\info.mdb;"

  3. Default Re: Class Not registered error

    On Sep 12, 1:24 pm, "ekkehard.horner" <ekkehard.hor...@arcor.de>
    wrote:
    > bhatnagar.a... schrieb:
    >
    > > Hello All,

    >
    > > In my application i am trying to create access database.
    > > I am creating an instance of catalogptr using "CreateInstance". It
    > > gets created successfully. After that when I create the database using
    > > "Create" function, It gives me an exception saying "Class not
    > > registered".

    >
    > > My connection string is:
    > > "Provider='Microsoft.Jet.OLEDB.4.0';Data Source='d:\info.mdb';" and
    > > the OS i am getting error on is Windows 2003 enterprise edition.

    >
    > > hr = m_pCatalog.CreateInstance(__uuidof(Catalog));
    > > if(SUCCEEDED(hr))
    > > {
    > > m_pCatalog->Create(strConnectionString);

    >
    > > 4th line gives the exception.

    >
    > > Can anybody tell me the problem??

    >
    > > Rgds
    > > Alok Bhatnagar

    >
    > The single quotes in your connection string look suspicious
    > to me. I'd try
    >
    > "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\info.mdb;"



    This is not the problem because it is working fine on other machines.
    On one machine it is not working. OS is Windows Server 2003 Standard
    Edition.



  4. Default Re: Class Not registered error

    bhatnagar.alok wrote:
    > On Sep 12, 1:24 pm, "ekkehard.horner" <ekkehard.hor...@arcor.de>
    > wrote:
    >> bhatnagar.a... schrieb:
    >>
    >>> Hello All,

    >>
    >>> In my application i am trying to create access database.
    >>> I am creating an instance of catalogptr using "CreateInstance". It
    >>> gets created successfully. After that when I create the database
    >>> using "Create" function, It gives me an exception saying "Class not
    >>> registered".

    >>
    >>> My connection string is:
    >>> "Provider='Microsoft.Jet.OLEDB.4.0';Data Source='d:\info.mdb';" and
    >>> the OS i am getting error on is Windows 2003 enterprise edition.

    >>
    >>> hr = m_pCatalog.CreateInstance(__uuidof(Catalog));
    >>> if(SUCCEEDED(hr))
    >>> {
    >>> m_pCatalog->Create(strConnectionString);

    >>
    >>> 4th line gives the exception.

    >>
    >>> Can anybody tell me the problem??

    >>
    >>> Rgds
    >>> Alok Bhatnagar

    >>
    >> The single quotes in your connection string look suspicious
    >> to me. I'd try
    >>
    >> "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\info.mdb;"

    >
    >
    > This is not the problem because it is working fine on other machines.


    It may not be this problem, but it may create problems with other
    providers. I suggest you eliminate them.


    > On one machine it is not working. OS is Windows Server 2003 Standard
    > Edition.


    "Class not registered" seems to be a pretty explicit error message. Have
    you installed the Jet components on this machine?
    --
    Microsoft MVP -- ASP/ASP.NET
    Please reply to the newsgroup. The email account listed in my From
    header is my spam trap, so I don't check it very often. You will get a
    quicker response by posting to the newsgroup.



+ Reply to Thread

Similar Threads

  1. class not registered error
    By Application Development in forum labview
    Replies: 1
    Last Post: 11-05-2007, 05:11 PM
  2. Replies: 1
    Last Post: 09-21-2007, 04:34 PM
  3. Class not registered Error please help
    By Application Development in forum DOTNET
    Replies: 1
    Last Post: 04-30-2007, 04:42 PM
  4. Class not registered Error
    By Application Development in forum Inetserver
    Replies: 1
    Last Post: 07-21-2006, 02:09 PM
  5. When browing to *.htw I get a 'Class Not Registered' error
    By Application Development in forum Inetserver
    Replies: 4
    Last Post: 05-03-2004, 09:25 PM