Hi,
I am getting an error when I try to instantiate my app using RM or Classification web services. The error occurs when I just try to create a new ClassificationsClient() instance:
Could not find default endpoint element that references contract 'CWS.Classifications' 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.
To get to this point, I merged my les-services-classifications into les-services based on other posts here and validated by going to the URL http://localhost/les-services/Classifications.svc. I then edited the reference.svcmap file in my VS project to include the new services. The section I edited now looks like this:
< MetadataSources >
< MetadataSource Address = " http://localhost/les-services/Authentication.svc " Protocol = " http " SourceId = " 1 " />
< MetadataSource Address = " http://localhost/les-services/DocumentManagement.svc " Protocol = " http " SourceId = " 2 " />
< MetadataSource Address = " http://localhost/les-services/ContentService.svc " Protocol = " http " SourceId = " 3 " />
< MetadataSource Address = " http://localhost/les-services/MemberService.svc " Protocol = " http " SourceId = " 4 " />
< MetadataSource Address = " http://localhost/les-services/Classifications.svc " Protocol = " http " SourceId = " 5 " />
< MetadataSource Address = " http://localhost/les-services/RecordsManagement.svc " Protocol = " http " SourceId = " 6 " />
</ MetadataSources >
I then did an update service references from the CWS node underneathService References in my VS Project. Then I ran the application. Have Imissed a step somewhere?
-Hugh