Debugging MS Exchange 2007 Transport Agent

半城伤御伤魂 提交于 2020-01-07 04:43:33

问题


I have source code for a transport agent that I have installed on MS Exchange 2007 written in C#. I need to debug it using VS, which I think involves 'attaching' the debugger to the process 'MSExchangeTransport.exe'. I do this, and put in breakpoints as the first statement in the OnSubmittedMessageHandler(). I know that this handler is being called because the agent works as expected and the code in the handler carrying out it's duties. However I am not getting any debugging information in the debugging window (despite various Debug.WriteLine() calls) and when I hover the mouse over the breakpoints they say:

"The breakpoint will not currently be hit. No symbols have been loaded for this document"

It was compiled in debug mode and successfully Installed and started using Install-TransportAgent, Enable-TransportAgent.

Something tells me the debugger is not finding what it needs. Any ideas?


回答1:


Ah! I should have been attaching the debugger to 'EdgeTransport.exe'. All working now.



来源:https://stackoverflow.com/questions/12347123/debugging-ms-exchange-2007-transport-agent

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!