Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > WinFX General

XBAP: Application.GetCookie() not getting browser cookies

 
 
Thread Tools Display Modes
Old 11-23-2006   #1 (permalink)
Shan McArthur
Guest


 

XBAP: Application.GetCookie() not getting browser cookies

Hello,

I am having problems using Application.GetCookie() within a browser-deployed
XBAP application. I know the browser that is hosting the XBAP application
has cookies (including the ASP.NET session cookie). When I get the XBAP
application to call Application.GetCookie, it throws the following
exception: No more data is available (Native Error Code=259).


I notice that if I call SetCookie(), then GetCookie() retrieves a value.
That said, the important part is to get the browser's session cookie so that
the XBAP application can interact with the host website.


Does anyone know how to get the cookies from the host browser of an XBAP
application? This is critical to being able to build an XBAP application
that is part of any website.

Thanks,
Shan McArthur



Old 01-08-2007   #2 (permalink)
Shan McArthur
Guest


 

Re: Application.GetCookie() not getting browser cookies

The problem is that XBAP cannot read session cookies.

"Shan McArthur" <shan_mcarthur@spamcop.net> wrote in message
news:ewOpK0xDHHA.4740@TK2MSFTNGP03.phx.gbl...
> Hello,
>
> I am having problems using Application.GetCookie() within a
> browser-deployed
> XBAP application. I know the browser that is hosting the XBAP application
> has cookies (including the ASP.NET session cookie). When I get the XBAP
> application to call Application.GetCookie, it throws the following
> exception: No more data is available (Native Error Code=259).
>
>
> I notice that if I call SetCookie(), then GetCookie() retrieves a value.
> That said, the important part is to get the browser's session cookie so
> that
> the XBAP application can interact with the host website.
>
>
> Does anyone know how to get the cookies from the host browser of an XBAP
> application? This is critical to being able to build an XBAP application
> that is part of any website.
>
> Thanks,
> Shan McArthur
>
>
>



 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hosting only 1 web browser at a time through my windows application. vidishasharma .NET General 0 05-28-2008 12:14 AM
Access denied Application Data, Cookies Pictures, etc in Windows E pjbealer Vista General 3 08-20-2007 11:44 AM
Windows Application vs XAML Browser Application Denis Avalon 0 04-20-2007 01:43 AM
XBAP application error: "cannot locate BAML" vipin.v.deep@gmail.com Avalon 0 09-27-2006 06:14 AM
web browser application pop up dialog Ranj Avalon 0 04-27-2006 02:58 AM








Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50