Visual Studio Development Bookmark and Share   
 index > Visual Studio Debugger > Error when debugging: An event was unable to invoke any of the subscribers (Exception from HRESULT: 0x80040201)
 

Error when debugging: An event was unable to invoke any of the subscribers (Exception from HRESULT: 0x80040201)

Hi,

I am using Visual Studio 2008 Pro on Windows 7 64-bit, fully patched up. I get this error when I'm developing my WPF app. It only happens in debug mode when a button click event fires. It doesn't happen when I launch the application with 'Start without Debugging' or when I start it from Windows Explorer.

An event was unable to invoke any of the subscribers (Exception from HRESULT: 0x80040201)
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
at MS.Internal.Automation.UiaCoreProviderApi.CheckError(Int32 hr)

Regards,
Pieter Breed
Pieter Breed  Tuesday, September 15, 2009 6:19 AM
Hi Peter,

I was having exactly the same problem on the 32 bit version of Win 7. I tried running VS2008 in safe mode and the error disappeared. Turns out it was devexpress coderush plugin causing the problem.

Hope this helps.

JK

Kelbob  Thursday, September 17, 2009 10:13 PM
Hi Pieter,

Would you please describe how did the issue occur? Or, could we generate a code snippet to reproduce the issue?

Thanks a lot!
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
If you have any feedback, please tell us.
Welcome to the All-In-One Code Framework!
Roahn Luo  Thursday, September 17, 2009 6:22 AM
Hi Peter,

I was having exactly the same problem on the 32 bit version of Win 7. I tried running VS2008 in safe mode and the error disappeared. Turns out it was devexpress coderush plugin causing the problem.

Hope this helps.

JK

Kelbob  Thursday, September 17, 2009 10:13 PM
The weird thing is that I have absolutely no idea how to replicate it. For about a week, my app was structured a specific way and this problem happened every time that I clicked on a specific button. Then when the feature matured, I moved it to a different project and now I'm not getting the error anymore. I do have the devexpress plugin installed (the free one) and will look at uninstalling that if the problem comes back.

Thanks!
Pieter Breed  Friday, September 18, 2009 6:12 AM
My app worked fine for a while, then I made a small code change and now it has its knickers up in a twist again and I don't know why. If I undo the changes I made it doesn't start working either. I'm flumoxed. How do you disable the DXCore? I tried running the app in safemode, but then the WPF projects won't load.

P
Pieter Breed  Tuesday, September 29, 2009 5:50 PM
Hi Pieter,

You can go to the DevExpress tab on VS abd click on the unload command.

JK
Kelbob  Sunday, October 04, 2009 5:54 PM

You can use google to search for other answers

Custom Search

More Threads

• HttpWebRequest gives error when run inside vs2005. Works from Windows
• Visual Studio Build menu options missing
• Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled
• Multithreaded Debugging
• VS 2005 no longer automatically attaches to process during debug
• Debug Tree Visualizer
• Visual Studio-Breakpoint problem-no symbols have been loaded !!!
• No breakpoint hit in Visual Studio Development Server unless stepping from client to server
• Thread debugging plugin for Visual Studio
• debug.assert doesn't pop up the message when condition is false