MissingMethodException

I have a couple of windows forms that I can't view in design

mode. When I click the design button from Solution Explorer it tries to

open them, but I get a MissingMethodException instead. The method it is

complaining about is OFP.iPACS.Remoting.ServiceBroker.get_ConnectionInfo. Here is the code for the ServiceBroker.ConnectionInfo property:

Private objConnectionInfo As

OFP.iPACS.Messaging.ConnectionInfo

Public ReadOnly Property ConnectionInfo() As

OFP.iPACS.Messaging.ConnectionInfo

Get

Return

objConnectionInfo

End Get

End Property
The most odd part of it is that if I run the code, and use this WinForm I don't

get any exceptions, and my only problem is when I view it in the IDE Designer.

By the way I am using VS 2003, and I do have the service pack installed.

Any help someone could give would be very appreciated.

[889 byte] By [pricejoel] at [2007-12-28]
# 1
Moving thread over to the IDE forum.
JaredParsonsMSFT at 2007-9-4 > top of Msdn Tech,Visual Basic,Visual Basic IDE...
# 2

Are any of the constructors or properties initialized in the InitializeComponent method calling the get_ConnectionInfo? Also have you done a "Rebuild All" to make sure that the designers have up to date controls?

Hope this helps,

MSFTAbelValadez at 2007-9-4 > top of Msdn Tech,Visual Basic,Visual Basic IDE...
# 3
I do have a Sub being called from my constructor that tries to get the value ConnectionInfo. I have shutdown my computer, loaded the solution again and done a rebuild solution. I still get the MissingMethodException after doing all that when I try to view the form in the designer. Any ideas?
pricejoel at 2007-9-4 > top of Msdn Tech,Visual Basic,Visual Basic IDE...
# 4
Is this code part of another assembly? The designer may be loading an previous version of the assembly that doesn't contain the property. It would then work at run-time if the .exe is loading the correct assembly.
nobugz at 2007-9-4 > top of Msdn Tech,Visual Basic,Visual Basic IDE...
# 5

Are you using multiple classes with inheritance? If so, try moving the logic that gets/sets the ConnectionInfo value to the base class consstructor.

The designers use the parameterless default constructor in the base class and then apply property changes to give you the visual design of your class, so if you have inheritance going on, part of your code might not be executed.

Hope this helps

MSFTAbelValadez at 2007-9-4 > top of Msdn Tech,Visual Basic,Visual Basic IDE...