Click here to Skip to main content
15,922,155 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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
Posted
Updated 25-May-14 22:14pm
v2
Comments
Kornfeld Eliyahu Peter 26-May-14 4:18am    
Why not ask Google support?
Sumit Bhargav 26-May-14 4:44am    
how to contact google support?
Kornfeld Eliyahu Peter 26-May-14 4:45am    
You may start here - https://developers.google.com/eclipse/docs/googleapis

1 solution

check your web.config file............................
 
Share this answer
 
Comments
Sumit Bhargav 26-May-14 9:43am    
what do i check in web.config?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900