Unexpected REGDB_E_CLASSNOTREG error 
Author Message
 Unexpected REGDB_E_CLASSNOTREG error

I've made simple inproc dll containing a few components. Next I've added a
new one - let's say XMLReport.
The problem is when I try to create instance of IXMLReport interface I've
got REGDB_E_CLASSNOTREG error.
I've tried to install that dll on different machines and this is the result:

(1) WinXP Proffessional EN, VS 6.0 + SP5 - S_OK
(2) WinXP Proffesional PL, VS 6.0 + SP5 - S_OK
(3) Win NT 4.0 Server EN + SP6a, VS 6.0 + SP5 - REGDB_E_CLASSNOTREG
(4) Win2k Server EN + SP2 - REGDB_E_CLASSNOTREG

Any ideas what's going on ?

PS. If it makes difference (IMHO - not) XMLReport uses MSXML Parser 3.0
(SP2) and of course I've installed this library on all machines.

TIA
Daniel Bary3a



Sat, 10 Jul 2004 19:47:48 GMT  
 Unexpected REGDB_E_CLASSNOTREG error
Hello,

Try checking Win NT 4.0 system for ATL.dll presence [1] - it should be
installed and registered. Also investigate your dll with "Depends" and "OLE
View" tools on (3) and (4) platforms. These tools are supplied with
Microsoft Visual Studio and Microsoft Platform SDK. It may be that your
component requires in some standard libraries (e.g. CRT library or MFC).

[1] Q201191, "PRB: Registering ATL Server Causes 0x80040154 Error"

--
Best regards,
Vadim Melnik,
_____________________
http://www.docsultant.com/


Quote:
> I've made simple inproc dll containing a few components. Next I've added a
> new one - let's say XMLReport.
> The problem is when I try to create instance of IXMLReport interface I've
> got REGDB_E_CLASSNOTREG error.
> I've tried to install that dll on different machines and this is the
result:

> (1) WinXP Proffessional EN, VS 6.0 + SP5 - S_OK
> (2) WinXP Proffesional PL, VS 6.0 + SP5 - S_OK
> (3) Win NT 4.0 Server EN + SP6a, VS 6.0 + SP5 - REGDB_E_CLASSNOTREG
> (4) Win2k Server EN + SP2 - REGDB_E_CLASSNOTREG

> Any ideas what's going on ?

> PS. If it makes difference (IMHO - not) XMLReport uses MSXML Parser 3.0
> (SP2) and of course I've installed this library on all machines.

> TIA
> Daniel Bary3a



Sun, 11 Jul 2004 01:10:35 GMT  
 Unexpected REGDB_E_CLASSNOTREG error
"Vadim Melnik" wrote :

Quote:
> Hello,

> Try checking Win NT 4.0 system for ATL.dll presence [1] - it should be
> installed and registered. Also investigate your dll with "Depends" and
"OLE
> View" tools on (3) and (4) platforms. These tools are supplied with
> Microsoft Visual Studio and Microsoft Platform SDK. It may be that your
> component requires in some standard libraries (e.g. CRT library or MFC).

Note that Visual Studio is installed on the computer with WinNT 4.0 and all
stuff like atl.dll, CRT and MFC libraries is present. BTW - I don't use MFC
in my library - it is a simple wrapper for remote calling of another ATL EXE
server.
Here are depends:
    Kernel32.dll
    User32.dll
    Advapi32.dll
    Ole32.dll
    Oleaut32.dll
IMHO  - standard stuff.
OleView shows the library and all components. Right clicking on XMLReport
and "Create instance" causes REG_DB_CLASSNOTREG of course.

Daniel Bary3a



Sun, 11 Jul 2004 16:00:57 GMT  
 Unexpected REGDB_E_CLASSNOTREG error
OK,

Have you tried investigating code with de{*filter*}, especially DllMain,
DllRegisterServer and DllGetClassObject function to locate problem?

Cheers,
Vadim.


Quote:
> "Vadim Melnik" wrote :
> > Hello,

> > Try checking Win NT 4.0 system for ATL.dll presence [1] - it should be
> > installed and registered. Also investigate your dll with "Depends" and
> "OLE
> > View" tools on (3) and (4) platforms. These tools are supplied with
> > Microsoft Visual Studio and Microsoft Platform SDK. It may be that your
> > component requires in some standard libraries (e.g. CRT library or MFC).

> Note that Visual Studio is installed on the computer with WinNT 4.0 and
all
> stuff like atl.dll, CRT and MFC libraries is present. BTW - I don't use
MFC
> in my library - it is a simple wrapper for remote calling of another ATL
EXE
> server.
> Here are depends:
>     Kernel32.dll
>     User32.dll
>     Advapi32.dll
>     Ole32.dll
>     Oleaut32.dll
> IMHO  - standard stuff.
> OleView shows the library and all components. Right clicking on XMLReport
> and "Create instance" causes REG_DB_CLASSNOTREG of course.

> Daniel Bary3a



Sun, 11 Jul 2004 19:20:50 GMT  
 Unexpected REGDB_E_CLASSNOTREG error

Quote:

> OK,

> Have you tried investigating code with de{*filter*}, especially DllMain,
> DllRegisterServer and DllGetClassObject function to locate problem?

Yeaah ... I found solution - very strange, but it works. First I removed
"bad" component from project, then I added a new one using the same name and
then I copied proper code from "old" .h and .cpp file. After recompiling
problem disappeared. Anyway - thanks for help.

Daniel Bary3a



Sun, 11 Jul 2004 23:00:57 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. DAO error:REGDB_E_CLASSNOTREG

2. REGDB_E_CLASSNOTREG - Error

3. Anyone seen this: fatal error CS0013: Unexpected error writing metadata to file

4. unexpected error when declaring a pointer to a managed object

5. unexpected division error

6. CLSCompliantAttribute causes unexpected (for me) compiler error CS0012

7. fatal error C1010: unexpected end of file while looking for precompiled header directive

8. Visual C++ 6 compiler error C1010 unexpected end of file

9. Error message"Unexpected Exception filename.exe:0xc00000005 acces s denied

10. Newbie help: fatal error C1004: unexpected end of file found

11. fatal error C1010: unexpected end of file while looking for precompiled header directive

12. fatal error C1010: unexpected end of file while looking for precompiled header d

 

 
Powered by phpBB® Forum Software