2014-03-26 54 views
1

我正在使用IronPython使用eConnect的.NET API将费用报告与GP集成。DynamicsGP eConnect:无法连接到端点

当执行

result = conn.CreateTransactionEntity(connection_string, xml) 

,我得到这个错误:

StandardError: Cannot connect to endpoint 'net.pipe://localhost/Microsoft/Dynamics/GP/eConnect/EntityOperations' 

有谁知道什么会导致这种问题的?这个相同的代码在其他机器上没有错误地工作,但由于某种原因,它不会同意这个特定的eConnect配置。

回答

1

您必须关闭RequireProxyService属性,所以你的代码是:

conn.RequireProxyService = false; 
result = conn.CreateTransactionEntity(connection_string, xml) 
相关问题