I am getting error while registering an exe on Vista. Faulting application query.exe, Faulting Module Querydb.dll, exception code 0xc0000142, fault offset 0x000089f3, etc.
It is properly registering in xp, the code developed is from vs2005 (vc++)..
Please help me in resolving the problem.
TIA,
with Regards,
Ravi Mudhol.

error while registering an exe on vista
vdv_phuong
Hi SvenC,
Thanks for the reply, I had tried in a pc which has Visual Studio 2005 is already installed, It failed to register. Then I 've tried on a raw Vista pc with VC++ Redistributable Installed, Sometimes it succeeds, sometimes it fails in registering.
Pls guide me, in resolving this,
Ravi Mudhol
charnnarong_d
Even the Administrator is not a full admin if UAC is enabled. Please use the "Run As Admin" console to call your.exe /RegServer
Do you get an error message upon registration
--
SvenC
Bolugbe
Hi,
registering components normally writes into HKEY_LOCAL_MACHINE\Software\Classes which a normal user cannot do. Maybe even an admin without explicitly giving full admin rights cannot do that if UAC is enabled. You can open a cmd.exe with full admin privileges: create a shortcut to cmd.exe on the desktop. Right click and choose "Run as Admin". Register the component from that console window by calling RegSvr32 "your component including its path"
--
SvenC
UsingBytes
If you use the dll version of the c/c++ runtime you need to distribute the runtime dlls: http://www.microsoft.com/downloads/details.aspx displaylang=en&FamilyID=32BC1BEE-A3F9-4C13-9C99-220B62A191EE
--
SvenC
Giber
Hi SvenC
I had logged in as user Administrator, not an user with the administrative privaleges. I 've tried to register it start -> Run.
Choosing the path of the exe with /Regserver option. Sometimes it registers in the raw Vista Pc. But in the VS2005 pc it not at all registers.
Thanks and Regards,
Ravi Mudhol