title: CRM 2015 SDK : The deserializer has no knowledge of any type that maps to this name
body: <p>I am currently working with CRM 2015 SDK. I am simply trying to update a value in C# with this SDK. But for some reasons that I try to figure out, there is a trouble when I save my <code>context</code>.</p>
  
  <p>There is the code :</p>
  
  <pre><code>foreach (KeyValuePair&lt;string, Account&gt; account in dicAccount)
  {
      //Calcul of url/login/date/key/customer values
      string generatedUrl = Utilities.GenerateURL(url, login, date, key, customer);
    account.Value.new_Link = generatedUrl;
    if (!context.IsAttached(account.Value))
     {
         context.Attach(account.Value);
     }
     context.UpdateObject(account.Value);
  
   }
   SaveChangesResultCollection results = context.SaveChanges(SaveChangesOptions.ContinueOnError);
    if (results != null)
    {
         foreach (SaveChangesResult result in results)
             {
                Type type = result.Request.GetType();
                bool hasError = result.Error != null;
                Entity entity = (Entity)result.Request.Parameters["Target"];
               if (type == typeof(UpdateRequest))
                  {
                      if (hasError)
                         {
                            if (entity != null)
                               {
                                    log.Error(result.Error.Message); 
                               }
                          }
                     }
  </code></pre>
  
  <p>On my Dynamics entities, I have this :</p>
  
  <pre><code>[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("new_link")]
  
  public string new_Link
  {
      get
      {
          return this.GetAttributeValue&lt;string&gt;("new_link");
      }
      set
      {
          this.OnPropertyChanging("new_link");
          this.SetAttributeValue("new_link", value);
          this.OnPropertyChanged("new_link");
      }
  }
  </code></pre>
  
  <p>Right now, I got this error printed by the LogError : </p>
  
  <blockquote>
    <p>The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter <a href="http://schemas.microsoft.com/xrm/2011/Contracts/Services:request" rel="nofollow">http://schemas.microsoft.com/xrm/2011/Contracts/Services:request</a>. The InnerException message was 'Error in line 1 position 12271. Element '<a href="http://schemas.datacontract.org/2004/07/System.Collections.Generic:value" rel="nofollow">http://schemas.datacontract.org/2004/07/System.Collections.Generic:value</a>' contains data from a type that maps to the name '<a href="http://schemas.microsoft.com/xrm/7.1/Contracts:ConcurrencyBehavior" rel="nofollow">http://schemas.microsoft.com/xrm/7.1/Contracts:ConcurrencyBehavior</a>'. 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 'ConcurrencyBehavior' and namespace '<a href="http://schemas.microsoft.com/xrm/7.1/Contracts" rel="nofollow">http://schemas.microsoft.com/xrm/7.1/Contracts</a>'.'.  Please see InnerException for more details.</p>
  </blockquote>
  
  <p>After few searchs, I found 2 possible causes :</p>
  
  <ol>
  <li><p>Enable Proxy type : the fact is I have the code to do that. So this couldn't help me.</p>
  
  <p><code>_serviceProxy.EnableProxyTypes();</code></p></li>
  <li><p>Version of SDK : I saw some answers about the fact that the SDK version 7.0 can cause this problem. The fact is that I am using the version 7.1 and I also try with the latest 7.1.1. I use this DLL's : <code>Microsoft.Xrm.Client</code>, <code>Microsoft.Xrm.Sdk</code>, <code>Microsoft.Crm.Sdk.Proxy</code></p></li>
  <li><p>Type of this element : I also try with a basic string as datatype. There is still problem of serealization. </p></li>
  </ol>
  
  <p>None of these ideas solve my problem and right now, I do'nt really know where I am suppose to look into to solve fix this problem.</p>