title: An error occurred when verifying security for the message on CRM SDK
body: <p>I got an error when connecting the CRM 2013 from CRM SDK code. The error message is </p>
  
  <blockquote>
    <p>An unsecured or incorrectly secured fault was received from the other
    party. See the inner FaultException for the fault code and detail.</p>
  </blockquote>
  
  <p>And here is the inner exception message:</p>
  
  <blockquote>
    <p>An error occurred when verifying security for the message.</p>
  </blockquote>
  
  <p>The CRM is installed on Virtual Box that consist of:</p>
  
  <ul>
  <li>Windows Server 2012</li>
  <li>CRM 2013</li>
  <li>SQL Server 2012</li>
  <li>Timezone and datetime between Host and guest machine already the same</li>
  </ul>
  
  <p>I have test the CRM connection with below scenario</p>
  
  <ul>
  <li>Able to access CRM from host browser (Windows 7)</li>
  <li>Able to run following code (CRM SDK) from guest machine (Win Server 2012)</li>
  <li>Not able to run following code from host machine (Windows 7)</li>
  </ul>
  
  <p>Here is my source code:</p>
  
  <pre><code>        var uri = new Uri(@"http://XXXX/MRC/XRMServices/2011/Organization.svc");
          var username = @"XX\Administrator";
          var password = "password";
  
          _credential.UserName.UserName = username;
          _credential.UserName.Password = password;
  
          using (OrganizationServiceProxy serviceProxy = new OrganizationServiceProxy(uri, null, _credential, null))
          {
              serviceProxy.EnableProxyTypes();
              IOrganizationService service = (IOrganizationService)serviceProxy;
              MRServiceContext context = new MRServiceContext(service);
              var query = context.ContactSet.ToList();
              foreach (var item in query)
              {
                  Console.WriteLine(item.FirstName);
              }
          }
  </code></pre>
  
  <p>Thanks in advance.</p>