在VS中选Tools|Options , 在Debug页中选中Just in time debugging!NT4.0 MTS
   在VS中选Project|Settings , 在Debug页中的Executable for debug session中填入X:\WINNT\SYSTEM32\mtx.exe , 在Program Arguments中填入/p:"包名或包ID"
   包ID可以在MTS Explorer中在你的MTS包上点右键,点属性 中看到!W2K COM+
   在VS中选Project|Settings , 在Debug页中的Executable for debug session中填入X:\WINNT\SYSTEM32\dllhost.exe , 在Program Arguments中填入/processid:包ID
   

解决方案 »

  1.   

    俗子,我用了你说的方法,还是出现下列错误后终止,高手们快来帮忙。
    Loaded 'c:\winnt\system32\dllhost.exe', no matching symbolic information found.
    Loaded 'C:\WINNT\System32\ntdll.dll', no matching symbolic information found.
    Loaded 'C:\WINNT\system32\advapi32.dll', no matching symbolic information found.
    Loaded 'C:\WINNT\system32\kernel32.dll', no matching symbolic information found.
    Loaded 'C:\WINNT\system32\rpcrt4.dll', no matching symbolic information found.
    Loaded 'C:\WINNT\system32\ole32.dll', no matching symbolic information found.
    Loaded 'C:\WINNT\system32\gdi32.dll', no matching symbolic information found.
    Loaded 'C:\WINNT\system32\user32.dll', no matching symbolic information found.
    Loaded 'C:\WINNT\system32\msvcrt.dll', no matching symbolic information found.
    Loaded 'C:\WINNT\system32\imm32.dll', no matching symbolic information found.
    The thread 0x230 has exited with code 0 (0x0).
    The program 'c:\winnt\system32\dllhost.exe' has exited with code 0 (0x0).
      

  2.   

    zhq2000说的完全正确,你的dll要用别的客户程序调用,你写了吗?
      

  3.   

    我在MTS包中的激活选项设置成由服务器应用程序激活了,改成由库服务器应用程序激活后,在Win2000中能行了,但NT4下仍不行。