我试图在单元测试中使用TransactionScope
,但在我们的构建服务器上始终出现错误。在遵循几个有用的SO答案和博客之后,我安装了DTCPing并在server1
和server2
上运行它。当我以相反的顺序运行它时,它似乎可以在一个方向上连接,但在另一个方向上失败:
++++++++++++Validating Remote Computer Name++++++++++++
Please refer to following log file for details:
D:\KPAHQDEV043372.log
Invoking RPC method on teamcity
RPC test is successful
++++++++++++RPC test completed+++++++++++++++
++++++++++++Start DTC Binding Test +++++++++++++
Trying Bind to teamcity
Binding call to teamcity Failed
Session Down
但是当我按照预期的方向运行它时,它会失败并显示RPC错误。
++++++++++++Validating Remote Computer Name++++++++++++
Please refer to following log file for details:
C:\TEAMCITY3024.log
Invoking RPC method on kpahqdev04
Problem:fail to invoke remote RPC method
Error(0x6BA) at dtcping.cpp @303
-->RPC pinging exception
-->1722(The RPC server is unavailable.)
RPC test failed
我在这里找到了一些有用的信息,但现在我卡住了。 有什么想法吗?