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

  • SEARCH
  • Home
  • 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 6733595
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:47:16+00:00 2026-05-26T10:47:16+00:00

I have a secret project I am working on and basically what it does

  • 0

I have a secret project I am working on and basically what it does is go to a page using the web browser fills out the form then clicks submit.

Yesterday everything was working OK but today my interface keeps lagging everytime the code to fill out data to forms on the site starts.

In the C# IDE this is the error I am getting:

C#: ObjectDisposedException was unhandled by user code

…and when I view the details of it I get:

The name ‘$exception’ does not exist in the current context

Anybody have any idea of what I have to do? Do I have to dispose something or…?

  • 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-05-26T10:47:17+00:00Added an answer on May 26, 2026 at 10:47 am

    Assuming that

    webBrowser1
    

    is of type

    System.Windows.Forms.WebBrowser
    

    then the error simply means that you already disposed the webBrowser1 object, prior to calling the rest of your code. So the fix is to simply make sure you dispose of the object at the appropriate time.

    Declaring your webBrowser1 object inside of a using block will make the scope more explicit, e.g.

    using(System.Windows.Forms.WebBrowser webBrowser1 = new System.Windows.Forms.WebBrowser())
    {
    
        //put calls to your functionality here e.g.
        webBrowser1.Document.GetElementById("oauth_signup_client_fullname")
           .SetAttribute("‌​value", txtBoxImportNames1.Text + txtBoxImportNames2.Text);
    
        //or pass it to another function, and it will still get disposed correctly, e.g.
        myOtherFunctionality(webBrowser1);
    
    }
    

    will help ensure that you both dispose of the WebBrowser object appropriately (since it is resource intensive) and that you only use it while it is active (since it is only accessible within the using block).

    The using block also helps ensure proper disposal even when an exception occurs.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anyone have the secret formula to resizing transparent images (mainly GIFs) without ANY
(Was: ASP.Net codebehind not finding controls on the web page) I'm using VS 2008.
I have a solution that includes a Web Site (created using the web site
I have to do an facebook login for a big web project and I
I'm making a project using GAE, and have a terrible problem. I wanted to
Hi i am currently doing a school project using cakePHP. I have the following
Solution for writing a program for keep secret photos. I have many secret photos
im trying to send rest api Users.getLoggedInUser i have all the secret session and
Imagine that you have a simple site with only 2 pages: login.aspx and secret.aspx.
I have a small Python program, which uses a Google Maps API secret key.

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.