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 ...
-
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
-
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;"
-
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.
-
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.
Similar Threads
-
By Application Development in forum labview
Replies: 1
Last Post: 11-05-2007, 05:11 PM
-
By Application Development in forum DOTNET
Replies: 1
Last Post: 09-21-2007, 04:34 PM
-
By Application Development in forum DOTNET
Replies: 1
Last Post: 04-30-2007, 04:42 PM
-
By Application Development in forum Inetserver
Replies: 1
Last Post: 07-21-2006, 02:09 PM
-
By Application Development in forum Inetserver
Replies: 4
Last Post: 05-03-2004, 09:25 PM