That's its, thanks a lot! On 10/24/07, Frank Mantek <[EMAIL PROTECTED]> wrote: > > Ah, VB, my long lost friend, have i not seen you for a while.... > > You should use "Nothing" instead of System.DBNull. I just tried it, and > that compiles fine. > > > Frank Mantek > Google > On Oct 24, 2007, at 4:30 PM, Steven Frank wrote: > > I'm running/compiling with Visual Studio 2005 (8.0.50727.762). The > Help/About reports .NET Framework version 2.0.50727. > > I am using your classes via VB.NET <http://vb.net/>. I know that calls > like this are supposed to be language independant, could this be an issue? > > I have taken a quick look for compiler options to easy the type > restrictions but haven't found any yet. > > In any case, I can tell you that this code definitely does not compile > with a type mismatch for the "key" parameter. > > > On 10/24/07, Frank Mantek <[EMAIL PROTECTED]> wrote: > > > > what version of .NET are you running/compiling this with? If this is 3.0, > > you might want to see if there is a backwards compat switch, because AFAIK > > that code compiles fine under 1.1 and 2.0. > > > > Frank Mantek > > Google > > On Oct 23, 2007, at 9:38 PM, Steven Frank wrote: > > > > This code: > > > > Session("sessionToken") = AuthSubUtil.exchangeForSessionToken( > > Request.QueryString("token"), null) > > > > Will not compile (with this error) > > 'Null' constant is no longer supported; use 'System.DBNull' instead. > > > > Taking that advice, I try the following: > > Session("sessionToken") = AuthSubUtil.exchangeForSessionToken( > > Request.QueryString("token"), DBNull.Value) > > > > This will also not compile (with this error) > > Value of type 'System.DBNull' cannot be converted to ' > > System.Security.Cryptography.AsymmetricAlgorithm' > > > > So I'm not sure where I'm going wrong... > > > > > > On 10/23/07, Frank Mantek <[EMAIL PROTECTED] > wrote: > > > > > > > > I am confused. Looking at the source code for ExecRequest, it is > > > using a NULL value in the exchangeForSessionToken. > > > > > > Frank Mantek > > > Google > > > On Oct 23, 2007, at 8:47 PM, Steven wrote: > > > > > > > > > > > I am having trouble exchanging a one-time use token for a session > > > > token. > > > > > > > > The first step in the process works great, I can get a one-time use > > > > token and I have verified that in my call to getRequestUrl I am > > > > requesting a token that can be exchanged for a session token. > > > > > > > > The problem occurs when I make the call to exchangeForSessionToken. > > > > The documentation states that a value of null should be sent as the > > > > "key" when using unregistered mode (which I am). Unfortunately > > > > exchangeForSessionToken will not take null (or System.dbnull ) and > > > > wants a type System.Security.Cryptography.AsymmetricAlgorithm. > > > > > > > > I've tried a few thing like creating an empty key, etc but no matter > > > > what I try I get a "(401) Unauthorized" when I make the call. > > > > > > > > Any suggestions would be appreciated. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Calendar Data 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-calendar-help-dataapi?hl=en -~----------~----~----~----~------~----~------~--~---
