DisconnectedContext MDA in Visual Studio 2005

Posted on 2006-04-05
Last Modified: 2009-12-16
I have code that makes a function call using an Invoke method in Reflection.  Inside that function I make a web service call.  Whenever it makes that  web service call I get the MDA exception DisconnectedContext.  I thought I disabled MDAs by adding the MDADisable.reg file to the registry:
Windows Registry Editor Version 5.00

However the DisconnectedContext error still throws.
Question by:kayhustle
    LVL 48

    Expert Comment

    LVL 1

    Author Comment

    Yeah I read that, it didn't help, I actually figured it out on my own, I changed the main thread apartment from STAThread to MTAThread and the error went away.
    LVL 48

    Expert Comment

    no problem

    LVL 48

    Expert Comment

    lets do it!!

    Accepted Solution

    PAQ-ing the question and refunding 500 points

    Thanks for your comment Mikal613.

    The Experts Exchange
    Community Support Moderator of all Ages

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Flash ( has evolved over the years to where it has become a masterful tool for displaying content screen.  It has excellent layout placement, UI precision as well as rendering capabilities. This, along with t…
    This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now