title: Error - Cannot contact site at the specified URL. There is no Web named "*.asmx"
body: <p>I am trying a read all the documents folder and subfolder from a share point website using <code>Microsoft.SharePoint.Client.dll</code>.
  This is the code which i am using for this:-</p>
  
  <pre><code>static void Main(string[] args)
          {
          string siteUrl = @"http://servername/sites/subfolder/default.aspx";
          ClientContext clientContext = new ClientContext(siteUrl);
          Web site = clientContext.Web;
          FolderCollection collFolder = site.Folders;
          clientContext.Load(collFolder);
          clientContext.ExecuteQuery();
          Console.WriteLine("The current site contains the following folders:\n\n");
          foreach (Folder myFolder in collFolder)
              Console.WriteLine(myFolder.Name);
          }
  </code></pre>
  
  <p>While debugging i am getting the below error on <code>clientContext.ExecuteQuery();</code> code.
  Error- </p>
  
  <p>Cannot contact site at the specified URL <code>http://servername/sites/subfolder/default.aspx</code>. There is no Web named "<code>/sites/subfolder/default.aspx/_vti_bin/sites.asmx</code>".</p>
  
  <p>Please help me to fix this as i am new to the sharepoint and already googled alot on this error but not able to fix it.</p>
  
  <p>Thanks in Advance for all the Coders .</p>