I have a User Control that calls methods of a class called ServiceFacade, wich references the service contract. The User Control itself also references the service contract.
When I try to add the control in a WinForm, in the designer i get the error "Could not find default endpoint element that references contract '...IRutePlanning' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this contract could be found in the client element. ". But when I run the application the control is shown perfectly.
The strange thing is that I if remove the reference to the service in the class ServiceFacade no errors are shown in the designer.
Microsoft is conducting an online survey to understand your opinion of the Msdn Web site. If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.