title: Getting error in Google contacts API
body: <p>I am working on Google Apps for Education to integrate with my .net application.I want to integrate google contacts to my application.For that i am using below code</p>
  
  <pre><code>using System;
  using System.Configuration;
  using System.Data;
  using System.Linq;
  using System.Web;
  using System.Web.Security;
  using System.Web.UI;
  using System.Web.UI.HtmlControls;
  using System.Web.UI.WebControls;
  using System.Web.UI.WebControls.WebParts;
  using System.Xml.Linq;
  using Google.GData.Contacts;
  using Google.GData.Client;
  using Google.GData.Extensions;
  using Google.Contacts;
  public partial class _Default : System.Web.UI.Page 
  {
      protected void Page_Load(object sender, EventArgs e)
      {
  
      }
  
      public static DataSet GetGmailContacts(string App_Name, string Uname, string UPassword)
      {
  
          DataSet ds = new DataSet();
  
          DataTable dt = new DataTable();
  
          DataColumn C2 = new DataColumn();
  
          C2.DataType = Type.GetType("System.String");
  
          C2.ColumnName = "EmailID";
  
          dt.Columns.Add(C2);
  
  
  
          RequestSettings rs = new RequestSettings(App_Name, Uname, UPassword);
  
          rs.AutoPaging = true;
  
          ContactsRequest cr = new ContactsRequest(rs);
  
          Feed&lt;Contact&gt; f = cr.GetContacts();
  
          foreach (Contact t in f.Entries)
          {
  
              foreach (EMail email in t.Emails)
              {
  
                  DataRow dr1 = dt.NewRow();
  
                  dr1["EmailID"] = email.Address.ToString();
  
                  dt.Rows.Add(dr1);
  
              }
  
          }
  
          ds.Tables.Add(dt);
  
          return ds;
  
      }
      protected void Button1_Click(object sender, EventArgs e)
      {
  
         DataSet ds = GetGmailContacts("MyNetwork Web Application!", txtgmailusername.Text, txtpassword.Text);
  
          gvmails.DataSource = ds;
  
          gvmails.DataBind();
      }
  }
  </code></pre>
  
  <p>When i execute the above code i am getting below error.</p>
  
  <p>"<strong>Execution of authentication request returned unexpected result: 404</strong>"</p>
  
  <p>How to solve this error.please help me on this...</p>