我开发了一个使用CRM 2015 SDK(v7.1.2)的应用程序。我想ExecuteTransactionRequest发送的CRM 2名的请求,但我得到了一个错误:在crm 2015中执行多次交易错误请求
The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter
http://schemas.microsoft.com/xrm/2011/Contracts/Services:request. The
InnerException message was 'Error in line 1 position 451. Element
'http://schemas.microsoft.com/xrm/2011/Contracts/Services:request'
contains data from a type that maps to the name
'http://schemas.microsoft.com/xrm/2011/Contracts:ExecuteTransactionRequest'.
The deserializer has no knowledge of any type that maps to this name.
Consider changing the implementation of the ResolveName method on your
DataContractResolver to return a non-null value for name
'ExecuteTransactionRequest' and namespace
'http://schemas.microsoft.com/xrm/2011/Contracts'.'
this is my applicaion's picture
我用这个链接:https://msdn.microsoft.com/en-us/library/mt634414.aspx
请帮帮我!在
请显示更多代码。我们无法看到您尝试创建的实体,因此我们很难尝试帮助 – jasonscript
您是否可以在Fiddler中观看此视频并查看响应消息实际包含的内容?我的猜测是,这是一个HTML响应,而不是有效的SOAP/XML响应(如预期的那样)。当服务器抛出某些错误,存在URL问题,认证问题等时可能会发生这种情况。 – Nicknow
hi jasonscript and Nicknow。我找到了我的答案。 – arioamir