I registered my website on google and received the client id and client secret id.I used them for some time.Now i deleted those client id and client secret id from google and re-created and used in the website.But this time i received the error.
Server Error in '/' Application.
An access token must be provided to use GOAuthRequestFactory
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: Google.GData.Client.GDataRequestException: An access token must be provided to use GOAuthRequestFactory
Source Error:
Line 1077: {
Line 1078: SpreadsheetQuery feedQuery = new SpreadsheetQuery();
Line 1079: SpreadsheetFeed spreadsheetFeed = service.Query(feedQuery);
Line 1080: SpreadsheetEntry spreadsheetEntry = new SpreadsheetEntry();
Line 1081: if (spreadsheetFeed.Entries.Count > 0)
Source File: c:\inetpub\wwwroot\MyAccount\LikeandInterest.aspx.cs Line: 1079
Stack Trace:
[GDataRequestException: An access token must be provided to use GOAuthRequestFactory]
Google.GData.Client.GOAuth2Request.EnsureCredentials() +332
Google.GData.Client.GDataRequest.EnsureWebRequest() +1268
Google.GData.Client.GDataGAuthRequest.EnsureWebRequest() +43
Google.GData.Client.GDataRequest.Execute() +71
Google.GData.Client.GDataGAuthRequest.Execute(Int32 retryCounter) +934
Google.GData.Client.GDataGAuthRequest.Execute(Int32 retryCounter) +957
Google.GData.Client.GDataGAuthRequest.Execute(Int32 retryCounter) +957
Google.GData.Client.GDataGAuthRequest.Execute(Int32 retryCounter) +957
Google.GData.Client.GOAuth2Request.Execute() +279
Google.GData.Client.Service.Query(Uri queryUri, DateTime ifModifiedSince, String etag, Int64& contentLength) +475
Google.GData.Client.Service.Query(FeedQuery feedQuery) +202
Google.GData.Spreadsheets.SpreadsheetsService.Query(SpreadsheetQuery feedQuery) +9
MyAccount_LikeandInterest.FindListSpreadSheet(SpreadsheetsService service, String Name, Boolean Status) in c:\inetpub\wwwroot\MyAccount\LikeandInterest.aspx.cs:1079
MyAccount_LikeandInterest.CreateDocument() in c:\inetpub\wwwroot\MyAccount\LikeandInterest.aspx.cs:669
MyAccount_LikeandInterest.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\MyAccount\LikeandInterest.aspx.cs:125
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +42
System.Web.UI.Control.OnLoad(EventArgs e) +132
System.Web.UI.Control.LoadRecursive() +66
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428