Reference:
http://msdn2.microsoft.com/zh-TW/library/bt727f1t.aspx
http://msdn.microsoft.com/netframework/programming/64bit/remotedebugging/
Follow the reference for necessary configuration on local project and remote machine’s network settings.
Install the debug package on the remote machine and launch the debug monitor. Under the installation diretory Microsoft Visual Studio 2005vsRemote Debuggerx86
Startup “Visual Studio 2005 Remote Debugger”, and use “No Authentication”(Naive only).
Copy follow folders from local machine if needed.
C:WINDOWSWinSxSManifestsx86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c.cat
C:WINDOWSWinSxSManifestsx86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c.manifest
C:WINDOWSWinSxSManifestsx86_Microsoft.VC80.DebugMFC_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_c8452471.cat
C:WINDOWSWinSxSManifestsx86_Microsoft.VC80.DebugMFC_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_c8452471.manifest
C:WINDOWSWinSxSManifestsx86_Microsoft.VC80.DebugOpenMP_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_66b81908.cat
C:WINDOWSWinSxSManifestsx86_Microsoft.VC80.DebugOpenMP_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_66b81908.manifest
C:WINDOWSWinSxSPoliciesx86_policy.8.0.Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_x-ww_09e017b4
C:WINDOWSWinSxSPoliciesx86_policy.8.0.Microsoft.VC80.DebugMFC_1fc8b3b9a1e18e3b_x-ww_a193936f
C:WINDOWSWinSxSPoliciesx86_policy.8.0.Microsoft.VC80.DebugOpenMP_1fc8b3b9a1e18e3b_x-ww_6afafa78
C:WINDOWSWinSxSx86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c
C:WINDOWSWinSxSx86_Microsoft.VC80.DebugMFC_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_c8452471
C:WINDOWSWinSxSx86_Microsoft.VC80.DebugOpenMP_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_66b81908
Copy your debug code in debug machine.
Change your project setting as follow.
**SYMPTOMS
**When you try to register or unregister a COM server, it will pop failed in 0x80029C4A (TYPE_E_CANTLOADLIBRARY).
**CAUSE
**This is cuase by no TLB or missing TLB of this COM DLL.
**RESOLUTION
**If your COM DLL is builded using /notlb. remember use
CComModule::RgisterServer(FALSE);
CComModule::DllUnregisterServer(FALSE);
otherwise, please make sure your TLB is well for register.
REFERENCE
CComModule::RegisterServer; CComModule::UnregisterServer
UAC (User Account Control) is complicate as I disussed before. Even you are a “Administrators” (Yes~~ it has ‘s’, in Vista you only have one “Administrator” but much “Administrators”), you can not register the COM component. There is a way to tell you how to work it out!!
Write a batch file “regsvr32 foo.dll” and use right click “Run as administrator”.
Open Programs–>Accessories–>Command Prompt. (right click “Run as administrator”.)
Such you can register your COM component, or you can use “Administrator” account (it will be disable by default, just go to “Manage–>Local Users and Groups–> Users” to open it.