Error:
—————————
Farming MIS APP
—————————
Run-time error ‘372’:
Failed to load control ‘ucFldCostTab’ from . Your version of may be outdated. Make sure you are using the version of the control that was provided with your application.
—————————
OK
—————————
Symptoms:
- Application launches fine for the administrative user accounts both locally and via Citrix client/web interface
- Application Launch via Citrix web interface results in the above shown Run-time error ‘372’ for any other accounts
- Works fine when you add the failing account to administrators group
Troubleshooting:
- Run Procmon on the XenApp server
- Launch the application as non-admin user account to reproduce the error case
- Go through procmon logs to figure out access denied errors
- Look for the events whose path refers to other users profile locations
Debug Logging:
Before:
C:>reg query “HKEY_LOCAL_MACHINESOFTWAREClassesTypeLib{6FBA474E-43AC-11CE-9A0E-00AA0062BB4C}1.0win32” /s
HKEY_LOCAL_MACHINESOFTWAREClassesTypeLib{6FBA474E-43AC-11CE-9A0E-00AA0062BB4C}1.0win32
(Default) REG_SZ C:Userslocal-adminWINDOWSSYSINFO.OCX
C:>
Re-registration command:
C:>regsvr32 “C:Program Files (x86)Common FilesFarmingMISSYSINFO.OCX”
C:>
After:
C:>reg query “HKEY_LOCAL_MACHINESOFTWAREClassesTypeLib{6FBA474E-43AC-11CE-9A0E-00AA0062BB4C}1.0win32” /s
HKEY_LOCAL_MACHINESOFTWAREClassesTypeLib{6FBA474E-43AC-11CE-9A0E-00AA0062BB4C}1.0win32
(Default) REG_SZ C:Program Files (x86)Common FilesFarmingMISSYSINFO.OCX
C:>
Fix:
- In my case, I figured out the issue is due to some Class files installed under administrator user profile thus works for any other admin users
- I moved the files to central place where all users/applications have access to the files and then re-registered the files using regsvr32