Server Error in '/googlelogin' Application.
The remote server returned an error: (403) Forbidden.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Net.WebException: The remote server returned an error: (403) Forbidden.
Source Error:
Line 24:
Line 25: string code = Request.QueryString["code"];
Line 26: string json = GoogleConnect.Fetch("me", code);
Line 27: GoogleProfile profile = new JavaScriptSerializer().Deserialize<GoogleProfile>(json);
Line 28: lblId.Text = profile.Id;
|
Source File: c:\Users\SADYOGI\Desktop\googlelogin\CS.aspx.cs Line: 26
Stack Trace:
[WebException: The remote server returned an error: (403) Forbidden.]
System.Net.HttpWebRequest.GetResponse() +6543772
ASPSnippets.GoogleAPI.GoogleConnect.?3?(String ?8?) +129
ASPSnippets.GoogleAPI.GoogleConnect.Fetch(String ?6?, String ?7?) +725
CS2.Page_Load(Object sender, EventArgs e) in c:\Users\SADYOGI\Desktop\googlelogin\CS.aspx.cs:26
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
System.Web.UI.Control.OnLoad(EventArgs e) +92
System.Web.UI.Control.LoadRecursive() +54
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +772
|