Usually this means the one-time token you are trying to exchange is invalid
for whatever reason. Have you tried it with different accounts doing the
AuthSub click-through?

Cheers,
-Jeff

On Thu, Apr 9, 2009 at 1:21 PM, isyndica <[email protected]> wrote:

>
> Hey,
>
> I had this exact code working perfectly at 2 AM EST this morning.
>
>        private AsymmetricAlgorithm getRsaKey()
>        {
>
>            X509Certificate2 cert = new X509Certificate2(Path.Combine
> (GetRunnginAssemblyPath(), "mycert.pfx"), "mypassword");
>            RSACryptoServiceProvider privateKey = cert.PrivateKey as
> RSACryptoServiceProvider;
>            MessageBox.Show(privateKey.KeySize.ToString());
>            return privateKey;
>        }
>
>        private void btnConvertToken_Click(object sender, EventArgs e)
>        {
>            // This *exact same code* was working perfectly on
> 4/8/2009 - maybe an issue with the Google service?
>            try
>            {
>                tbSessionToken.Text =
> AuthSubUtil.exchangeForSessionToken(tbOneTimeToken.Text, getRsaKey());
>            }
>            catch (Exception x)
>            {
>                MessageBox.Show(x.ToString());
>            }
>        }
>
> Ever since around 11 AM EST today, I get an exception with the
> following message:
>
> Google.GData.Client.GDataRequestExecution: Execution of
> exchangeForSessionToken
>  ---> System.Net.WebException The remote server returned an error:
> (401) Unauthorized.
>
> Any idea?  Did somethign change with the service?
>
> The application is registered, certificate was uploaded and... again,
> I guess this was working less than 12 hours ago.
> I'm lost and frustrated...
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Picasa Web Albums API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Picasa-Data-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to