Quite possibly the most irritating and useless VB.NET design error yet.
I'm developing an application in VB.NET using VS 2005. It originally was using .NET 2.0, but I recently updated it to 3.0 so I could use the WPF RichTextBox in the project. I haven't had a problem with it until this morning. I tried to open the form in design view to make a couple changes to existing controls and was greeted with this useless message:
On the Error List, under warnings: "Events cannot be set on the object passed to the event binding service because a site associated with the object could not be located." There is no file specified for this error, and both line and column are 0.
I haven't made any changes to the design or controls on the form. It was working fine yesterday. The really obnoxious thing: the form works fine when running the program. Other forms in this project display in design mode without issue. It's just this one and I can't figure out why.
I pulled an older copy of the form (before the WPF integration) from my SVN and dropped the code from the .vb and .designer.vb files into the current project. The .resx files for this form are identical in both versions. Same error message.
Any ideas as to what causes this error message? I did some searches on google for the message and didn't turn up much.
I'm developing an application in VB.NET using VS 2005. It originally was using .NET 2.0, but I recently updated it to 3.0 so I could use the WPF RichTextBox in the project. I haven't had a problem with it until this morning. I tried to open the form in design view to make a couple changes to existing controls and was greeted with this useless message:
One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes.
Events cannot be set on the object passed to the event binding service because a site associated with the object could not be located.
at System.ComponentModel.Design.EventBindingService.EventPropertyDescriptor.SetValue(Object component, Object value)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeAttachEventStatement(IDesignerSerializationManager manager, CodeAttachEventStatement statement)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeStatement(IDesignerSerializationManager manager, CodeStatement statement)
On the Error List, under warnings: "Events cannot be set on the object passed to the event binding service because a site associated with the object could not be located." There is no file specified for this error, and both line and column are 0.
I haven't made any changes to the design or controls on the form. It was working fine yesterday. The really obnoxious thing: the form works fine when running the program. Other forms in this project display in design mode without issue. It's just this one and I can't figure out why.
I pulled an older copy of the form (before the WPF integration) from my SVN and dropped the code from the .vb and .designer.vb files into the current project. The .resx files for this form are identical in both versions. Same error message.
Any ideas as to what causes this error message? I did some searches on google for the message and didn't turn up much.