Re: CryptAcquireContext _sometimes_ fails with NTE_PROVIDER_DLL_FA

From: Stephan Keil (Stephan.Keil_at_gmx.de)
Date: 11/23/05


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



Relevant Pages

  • Re: how can I make money off my ultimate security solution for servers
    ... You should give a price to the first one that succeeds. ... and it fixes 100% percent of the current security problems with windows ... server in the world will be using some variation of my design. ... This is not just my opinion, I have shared this design with my friends ...
    (microsoft.public.windows.server.security)
  • Re: how can I make money off my ultimate security solution for servers
    ... You should give a price to the first one that succeeds. ... server in the world will be using some variation of my design. ... This is not just my opinion, I have shared this design with my friends ... first thing about business, now that I have a awesome security solution, ...
    (microsoft.public.windows.server.security)
  • Re: So tired of this bug
    ... > I am so so tired of getting this error message when I try to open a web ... > The web server reported the following error when attempting to create ot ... opening one of these projects succeeds. ... Create the file system folderfor the web project ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: DTS Package fails on last step
    ... Is it failing as a job and succeeds manually? ... to make sure the server box can see all the data sources as well. ... INSERTS it into the dBASE IV table. ... If I run the DTS package, ...
    (microsoft.public.sqlserver.dts)