Application failed to initialize 0xc0000022 - Access rights to System32 DLLs

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Tim McLeod (mail_at_timmcleod.co.uk)
Date: 08/04/04


Date: 4 Aug 2004 07:12:24 -0700

Hi Andrew,

I had EXACTLY the same issue on our Win2k Citrix farm after installing
a new VB application. We found that the ICA clients got this error
message and the Winterm devices suddenly failed to log in.

It turns out that our VB developer's workstation had been upgraded to
VB6 SP5. Since then all the packaged installers he creates install the
msbvm60.dll but fail to give access to it from non admin users (pretty
fundamental you would have thought) Anyway to fix the problem get
properties on msbvm60.dll (its in C:\winnt\system32 just in case you
didn't know) and give "Everyone" at least Read access to it.

Tim

----------------------------------------------------------------------------
Hi group

I have a customer system (Win2000 terminal server set-up) where VB
programs
are running fine if the user has Admin rights but if not, they were
getting
the error message "Application failed to initialize properly - error
0xc0000022".

The cause of the problem has been identified as the security settings
of the
installed DLL / OCX in ~~\system32 folder.

Those DLLs (ie MSVBVM60.DLL) do not allow ANY access to ordinary
users.

I spent quite a while searching Google and did find a post which
pointed me
in the direction of the DLLs - But several posts and our network guys
just
took the attitude of giving the users admin rights !! (Well the
problem goes
away).

Given that I don't seem to have any say in the matter of access rights
to
DLLs, the software is distributed using the P&D Wizard, - Can anyone
provide
info on what needs to be done to avoid this problem ?

(Manually amending the properties of all DLLs etc in SETUP.LST is not
my
idea of fun)

tia

Andrew



Relevant Pages

  • Re: Error loadin VS 2005 DLLs in Windows Vista
    ... The scenario is a Legacy VC 6.0 application which we are adding new mixed ... mode DLLs compiled with VS 2005. ... Installing the Visual C++ 2005 Redistributable changes the error to: ... Have you tried a "Thinstall Solution"? ...
    (microsoft.public.vc.language)
  • Re: directx redistribution
    ... and tried installing it on another machine. ... If you were referanceing the dlls in the project directory you ... > I would remove the referances to the MDX files and re add them making sure ... >> including a copy of the direct3d dlls in the target folder. ...
    (microsoft.public.win32.programmer.directx.managed)
  • Re: location of MFC71*.dlls when installing a program ?
    ... A local copy of the MFC DLLs doesn't take up too much room and you are always assured that your program will have the DLLs you intended to run it with. ... MSFT does not recommend touching sys32 with your libraries. ... Also, when you are installing it local, chances of it being deleted by ...
    (microsoft.public.vc.mfc)
  • Re: What Linux can learn from Windows...
    ... >> one false bit in the registry and the pc won't boot anymore. ... I had a registry get messed up by installing a NIC into a Windoze machine. ... The biggest problem with Windoze is the .DLLs and where they get installed. ...
    (alt.os.linux)
  • Re: Office 97 on Windows XP PC
    ... run correctly when installed on a Windows XP computer. ... It runs fine when anyone with admin rights is logged on, ... >| I am installing Office 97 on a new PC that has Windows ... >| Will Office 97 even run on an XP operating system or is ...
    (microsoft.public.office.setup)