DisconnectedContext MDA in Visual Studio 2005

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
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework]
"MDA"="0"

However the DisconnectedContext error still throws.
LVL 1
kayhustleAsked:
Who is Participating?
 
GranModCommented:
PAQ-ing the question and refunding 500 points

Thanks for your comment Mikal613.

GranMod
The Experts Exchange
Community Support Moderator of all Ages
0
 
kayhustleAuthor Commented:
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.
Thanks
0
 
Mikal613Commented:
no problem

0
 
Mikal613Commented:
lets do it!!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.