Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7971769
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T07:42:27+00:00 2026-06-04T07:42:27+00:00

The Older post that I’ve made 30 minuts ago has seen all its responses

  • 0

The Older post that I’ve made 30 minuts ago has seen all its responses deleted.. First of all I want to apologize for my English to all the moderator that have corrected me each time I wrote something on this forum :).

Ok so basicaly the problem is that I need to add a token in my WebBrowser Cookies for a bank-app done mostly with webviews.
I’ve written a test web page that displays the cookies. and I try to hit it like so:

private void MainPage_Loaded(object sender, RoutedEventArgs e)
        {

            string testCookies = "http://devlbpaccescomptewp7.clicmobile.com/test-read-cookie.html?timeStamp=";
            testCookies += DateTime.Now.Millisecond;
            Cookie cookie = new Cookie("cookie", "lol");
            Uri test = new Uri(testCookies, UriKind.Absolute);
            CookieContainer cc = new CookieContainer();
            cc.Add(test,cookie);

            HttpWebRequest req = (HttpWebRequest)HttpWebRequest.Create(testCookies);
            req.UserAgent = "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705;)";
            req.Method = "POST";
            req.Accept = "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8";
            req.CookieContainer = cc;

            //HttpWebResponse myWebResponse = (HttpWebResponse)req.get
            req.BeginGetResponse(new AsyncCallback(ReadWebRequestCallback), req); 

            uriList = new List<Uri>();

           // wB.Navigate(test);
           // wB.Navigate(new Uri(home, UriKind.Absolute));
           wB.Navigating += new EventHandler<NavigatingEventArgs>(wB_Navigating);
        }

        private void ReadWebRequestCallback(IAsyncResult callbackResult)
        {
            HttpWebRequest myRequest = (HttpWebRequest)callbackResult.AsyncState;
            HttpWebResponse myResponse = (HttpWebResponse)myRequest.EndGetResponse(callbackResult);

            using (StreamReader httpwebStreamReader = new StreamReader(myResponse.GetResponseStream()))
            {
                string results = httpwebStreamReader.ReadToEnd();
                Deployment.Current.Dispatcher.BeginInvoke(() => wB.NavigateToString(results));


            }
            myResponse.Close();
        }

I got an UnauthorizedAccessExeption on the wb.NavigateToString line.

Does somebody has already seen that ?

Thanks,
Renaud

EDIT : I corrected the conserned line to make it work !

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T07:42:28+00:00Added an answer on June 4, 2026 at 7:42 am

    Since your callback is on a different thread, you need to use the Dispatcher to modify the UI.

    Deployment.Current.Dispatcher.BeginInvoke(() => wb.NavigateToString(results));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm testing a Factory that simply retrieves all the post of a news system.
In my app I have a character that has feet and I want to
Is the order, or sequence, of rules in CSS significant? This post says that
Rehashing an older post: JQuery VS Flex - Choosing a Platform for SAAS We
Looking at an older stackoverflow post (back in June 2009, Is the WCF REST
Do older iPods and iPhones have a frame rate of 60fps? I'm finding that
I'm looking for the function that will take rows older then X days and
I have encountered a problem in my program that has me somewhat stumped. I
How to develop a twitter app that post images, message and link into twitter?
I am reposting this as my older post was not very clear. I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.