Error While Obtaining Google Access Token RRS feed

  • Question

  • error  == > "system cannot locate the resource specified."
    number == > "-2146697211"
    stack  == > "WinRTError: The system cannot locate the resource specified.\r\n\n   at getResultsOfAsyncOp (Function code:226:5)\n   at completed (Function code:299:21)"
    uri used in code are following;
    startURI ==>
    https://accounts.google.com/o/oauth2/auth? client_id=xxxxxxxxxxx&redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=code&scope=https://www.googleapis.com/auth/drive
    endURI ==> 
    does any one solved this issue?
    Saturday, March 9, 2013 3:48 PM


  • Hi Zeeshan,

    Are you using the WebAuthenticationBroker class to request access token from google API service? If so, you can use the following SDK sample for testing:

    #Web authentication broker sample

    To correctly get access token from google Oauth service, you need to supply the "client id" information which is provided when you register an application (through the Google APIs Console).

    For the error information you've provided, it indicates that the runtime cannot locate the target resource. This usually means the target authentication endpoint (the google Https://accounts.google.com .... url) is not accessible. So you can check the network connection of your dev machine to ensure that the google oauth endpoint is accessible. Based on my experience, if the network connection is ok, such issue is probably caused by the proxy setting we've used for the dev machine, you can try adjust it to see if it helps.

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by Song Tian Friday, March 15, 2013 9:26 AM
    Monday, March 11, 2013 5:36 AM