我開發了一個使用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