troubleshooting Question

C# VS2013 GUI error when trying to view Main form in designer

Avatar of jetbet
jetbetFlag for New Zealand asked on
C#.NET Programming
2 Comments1 Solution115 ViewsLast Modified:
"Events cannot be set on the object passed to the event binding service because a site associated with the object could not be located."

I have a GUI that uses multiple User Controls and accesses the onclick methods via delegates on the main form.
When I try to view the Main Form in the designer I get the error shown above. The Application builds and runs fine.

I get the option of Ignore and Continue when the error shows which warns me ""Ignoring these exceptions will put the designer in an unstable state that could result in the loss of controls. Do you want to continue?"

Selecting "Yes" shows me the Gui and there does not appear to be anything missing.

The only thing I have found on the Internet is an old comment from 2012
"Take any delegate or event handler registrations out of InitializeComponent. Although the objects are properly created and it all compiles and works fine it seems to screw up the form designer in VS2005." This comment, from StackOverflow, was never accepted or commented on by the author of the original question.

Does anyone know what the issue is and how I can get rid of this error?
Naitik Gamit
Senior Software Developer

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Top Expert 2015

The Distinguished Expert awards are presented to the top veteran and rookie experts to earn the most points in the top 50 topics.

Log in to continue reading
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform for $9.99/mo
View membership options
Unlock 1 Answer and 2 Comments.
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
The Value of Experts Exchange in My Daily IT Life

Experts Exchange (EE) has become my company's go-to resource to get answers. I've used EE to make decisions, solve problems and even save customers. OutagesIO has been a challenging project and... Keep reading >>


Owner of Outages.IO
Phoenix, Arizona, United States
Member Since 2016
Join a full scale community that combines the best parts of other tools into one platform.
Unlock 1 Answer and 2 Comments.
View membership options
“All of life is about relationships, and EE has made a virtual community a real community. It lifts everyone's boat.”
William Peck

Member since 2004