Re: CoCreateInstance Fails with "ClassFactory cannot supply..."

From: Peter Steele (p12steele_at_mail.com)
Date: 12/07/04


Date: Tue, 7 Dec 2004 11:48:35 +0100

that's it!

thank you :)

"Walter Poupore [MS]" <waltpo@online.microsoft.com> schrieb im Newsbeitrag
news:418DB2F2-5943-481F-9628-0E9A90C3483E@microsoft.com...
> A possible solution is to modify your code for Windows 2000 to use
> IID_IEnroll2.
>
> IID_IEnroll2 is for the version of xenroll that ships on Windows 2000.
> IID_IEnroll4 is for the version of xenroll that ships on Windows Server
> 2003 and Windows XP.
>
> Although you cannot use the XP and Windows Server 2003 version of xenroll
to
> Windows 2000, you should find that much of the functionality in the
> IID_IEnroll4 version is also in the IID_IEnroll2 version. You can compare
the
> differences between these versions using the MSDN documentation (at
> http://msdn.microsoft.com/library/en-us/seccrypto/security/ienroll2.asp
and
> http://msdn.microsoft.com/library/en-us/seccrypto/security/ienroll4.asp).
>
> This posting is provided 'as is' with no warranties, and confers no
rights.
>
> --
> Walter Poupore [MS]
> --
>
> "Peter Steele" wrote:
>
> > Hello!
> >
> > When trying to create a Certificate Request programmatically, the call
to
> > CoCreateInstance:
> >
> > hr = CoCreateInstance(CLSID_CEnroll,
> > NULL,
> > CLSCTX_INPROC_SERVER,
> > IID_IEnroll4,
> > (void **)&CertEnroll);
> >
> > fails on my test win2kserver system.
> >
> > I developed the code on WinXP, and then just copied the pgroamm to the
win2k
> > system.
> > It seems, that some dll is out of date on the server. But, from where Do
I
> > get an update for xenroll.dll to install on the server?
> >
> > Or is the problem elsewhere?
> >
> > thanks!
> >
> >
> >



Relevant Pages

  • RE: Stop Error 0x0000008E after logging on locally
    ... > "STOP 0x0000008E" Error Message Occurs When You Upgrade to Windows Server ... > 840216 Stop 0x0000008e error occurs on a server that is running Microsoft ... try a clean boot of the server and see if the issue persists. ...
    (microsoft.public.windows.server.sbs)
  • Re: MSINFO32.exe will not open.
    ... At the command prompt, type net start helpsvc, and then press ENTER. ... Windows Server 2003: ... language versions of Windows Server 2003, such as the Japanese version of ... If the issue persists, please do clean boot on the SBS to narrow ...
    (microsoft.public.windows.server.sbs)
  • Re: In-place upgrade from NT to 2003, member server question
    ... I'm aware of the NT4Emulator key, but this is not the answer that I'm ... You say that "based on your experience, you needen't reboot the win2k member ... > use Windows Server 2003 interim Functional Level. ... > sufficient Windows 2k3 domain controllers, ...
    (microsoft.public.windows.server.migration)
  • Re: SBS2003 SP2 wizards not working
    ... Best practices and known issues when you install Windows Server 2003 Service ... This is a 'critical' class update targeted at all SBS ...
    (microsoft.public.windows.server.sbs)
  • Re: Installed 2 new hard drives now file copy is very slow
    ... tasks like open a Windows Explorer window and have to wait forever ... You seem to have Windows Server 2003 installed, ... Event Type: Error ... Event Source: Application Error ...
    (microsoft.public.windowsxp.perform_maintain)

Quantcast