title: SharePoint client object model returns "User Cannot Be Found" on clientContext.ExecuteQuery() method
body: <p>SharePoint client object model returns "User Cannot Be Found" on <strong>clientContext.ExecureQuery()</strong> method, below is sample code.</p>
  
  <pre><code>        ListItemCollection listItemColl = null;
          var securePassword = new System.Security.SecureString();
          var pwd = WebConfigurationManager.AppSettings["password"];
  
          foreach (char c in pwd)
          {
              securePassword.AppendChar(c);
          }
  
          var spUri = ConfigurationManager.AppSettings["Office365SharepointUri"];
          var clientContext = new ClientContext(new Uri(spUri));
          var onlineCredentials = new SharePointOnlineCredentials(WebConfigurationManager.AppSettings["userName"], securePassword);
  
          clientContext.Credentials = onlineCredentials;
  
          try
          {
              var strCamlQuery = new CamlQuery();                
              clientContext.Load(clientContext.Web);                
              var templist = clientContext.Web.Lists.GetByTitle("SomeValidListName");
              clientContext.Load(templist);                
              strCamlQuery.ViewXml = "&lt;View Scope=\"RecursiveAll\"&gt;&lt;/View&gt;";
              listItemColl = templist.GetItems(strCamlQuery);
              clientContext.Load(listItemColl);
              clientContext.ExecuteQuery();
          }
          catch (Exception)
          {
              throw;
          }
  </code></pre>
  
  <p>I am giving valid credentials, even able to access SharePoint site with same supplied credentials through browser without any issue.</p>
  
  <p>Dose anyone face this issue before?</p>
  
  <p><strong>Environment:</strong>
  MVC 5 Application.
  CSOM.
  Visual Studio.
  C#</p>