Re: CoCreateInstance Fails with "ClassFactory cannot supply..."
From: Peter Steele (p12steele_at_mail.com)
Date: 12/07/04
- Next message: Christian France: "RE: problem with System.Security.Cryptography"
- Previous message: Stefan Cuypers: "Re: Handle leak in Windows 2003 Authorization Manager?"
- In reply to: Walter Poupore [MS]: "RE: CoCreateInstance Fails wird "ClassFactory cannot supply...""
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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!
> >
> >
> >
- Next message: Christian France: "RE: problem with System.Security.Cryptography"
- Previous message: Stefan Cuypers: "Re: Handle leak in Windows 2003 Authorization Manager?"
- In reply to: Walter Poupore [MS]: "RE: CoCreateInstance Fails wird "ClassFactory cannot supply...""
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|