Re: CryptAcquireContext _sometimes_ fails with NTE_PROVIDER_DLL_FA
From: Stephan Keil (Stephan.Keil_at_gmx.de)
Date: 11/23/05
- Next message: Valery Pryamikov: "Re: Crypto API using RC2 instead of RC4?"
- Previous message: lelteto: "Re: CryptAcquireContext _sometimes_ fails with NTE_PROVIDER_DLL_FA"
- In reply to: lelteto: "Re: CryptAcquireContext _sometimes_ fails with NTE_PROVIDER_DLL_FA"
- Next in thread: Stephan Keil: "Re: CryptAcquireContext _sometimes_ fails with NTE_PROVIDER_DLL_FA"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 23 Nov 2005 20:03:43 +0100
Thanx again! I tracked the problem even further. Now the only thing
I do is LoadLibrary("rsaenh.dll") (which is done implicitly by
CryptAcquireContext()).
On Windows 2003 Server it fails, GetLastError() yields
0x000003E6 == 998 == ERROR_NOACCESS ("Invalid access to memory location")
which probably means an access violation during dll startup.
If I connect a remote debugger (msvcmon -anyuser -tcpip) just before the call,
again, it succeeds.
Also on WinXP and Win2000 Server the call succeeds.
Calling LoadLibraryEx() with DONT_RESOLVE_DLL_REFERENCES succeeds also
on Win2003 Server, but a subsequent CryptAcquireContext() fails, supposedly
because the library is not fully loaded.
I obtained a hot fix from Microsoft support which seems to fit my problem
(see http://support.microsoft.com/default.aspx?scid=kb;en-us;899750&sd=rss&spid=3198),
but unfortunately it didn't help.
I am digging deeper and depper, but it's digging in the mist :(
Calling for help again :o
Thx & regards, Stephan
- Next message: Valery Pryamikov: "Re: Crypto API using RC2 instead of RC4?"
- Previous message: lelteto: "Re: CryptAcquireContext _sometimes_ fails with NTE_PROVIDER_DLL_FA"
- In reply to: lelteto: "Re: CryptAcquireContext _sometimes_ fails with NTE_PROVIDER_DLL_FA"
- Next in thread: Stephan Keil: "Re: CryptAcquireContext _sometimes_ fails with NTE_PROVIDER_DLL_FA"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|