Re: Error 372 - Failed to load control '<controlname>' from



Thank you Ralph for the detailed analysis. I'd like to supplement the first
possibility.

Hello David, may I know whether you are launching the VB6 app in Windows
Vista? If yes, the following report might be helpful to you:

Problem Description
=======================

After installing an application to a Vista machine the following error is
generated when the application is launched by an account other than that of
the user who installed the application:

Runtime Error: 372 - Failed to load control <controlName> from <blank> .
Your version of <blank> may be outdated. Make sure you are using the
version of the control that was provided with your application

CAUSE:
=======================
The application had been installed for just the user who had installed the
application.

If the UAC was turned off and a member of the Admin group had attempted to
run the application with elevated privileges, the application would fail
with the same error.

While this action would have been permissible in previous versions of
Windows, the way we handle COM components has been dramatically changed
with Windows Vista. When an application is installed for a specific user,
the COM components referenced in the application are registered in the
HKEY_CURRENT_USER section of the registry. When UAC is turned on and an
Admin attempts to run the application we read these entries and prompt the
Admin to allow the action. When UAC is turned off, we are not able to
prompt the Admin for permission so we do not read the HKEY_CURRENT_USER
section because of the security risk involved.

When we install for All Users, the entries are made to the
HKEY_LOCAL_MACHINE section and the Admin user is able to read these values
when the application is launched. Note that the User account is limited to
Read permission on the HKEY_LOCAL_MACHINE section whereas they have Read
and Write on the HKEY_CURRENT_USER section hence the security risk.

The following website has further information on User Account Control:
http://technet.microsoft.com/en-us/windowsvista/aa906021.aspx

Resolution
=======================

It is recommended that any Visual Basic 6 application be installed by a
member of the Admin Group for All Users.

Have a very nice week!

Regards,
Jialiang Ge (jialge@xxxxxxxxxxxxxxxxxxxx, remove 'online.')
Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@xxxxxxxxxxxxxx

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications.

MSDN Managed Newsgroup support offering is for non-urgent issues where an
initial response from the community or a Microsoft Support Engineer within
2 business day is acceptable. Please note that each follow up response may
take approximately 2 business days as the support professional working with
you may need further investigation to reach the most efficient resolution.
The offering is not appropriate for situations that require urgent,
real-time or phone-based interactions. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/en-us/subscriptions/aa948874.aspx
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.



.



Relevant Pages

  • Re: corrupted profiles and much more
    ... contacted HP Support directly about these problems? ... the machine did not come with Vista SP1 preinstalled)? ... issues started right after installing that update, ...
    (microsoft.public.security)
  • Re: corrupted profiles and much more
    ... crossposted it to Windows Update newsgroup) but it must've gotten lost in the ether because it hasn't appeared. ... I'd recommend either contacting HP Support or Microsoft Vista SP1 Support, ... issues started right after installing that update, ...
    (microsoft.public.security)
  • Re: firewall on budget ?
    ... 1)Work in Admin mode, and through 'run as', browse ... If working in admin mode and doing runas to browse in a guest account. ... Installing a program, getting an error, then doing the run as, can be ... running as administrator all the time. ...
    (microsoft.public.windowsxp.security_admin)
  • RE: How to block users from installing other apps
    ... admin password. ... How to block users from installing other apps ... It's not hard to manipulate permissions for your apps so that these users ... |> SBC Yahoo! ...
    (Focus-Microsoft)
  • Re: corrupted profiles and much more
    ... contacted HP Support directly about these problems? ... issues started right after installing that update, ... Windows) and allowed for most settings in IE security tab, ... conflicting security systems (Windows, Norton, HP ProtectTools, GPO ...
    (microsoft.public.security)