FrameworkServiceClient Error
Posted: Sun 18 May 2014, 20:33
Im trying to work against http://ip:8080/SwitchKingFrameworkServiceHost in the IMonitoredEventInterceptor Interface.
I have added a service Reference and are working against it like this:
When the code runs within the plugn i get this error from the exception:
When I create a console Application and run the same code from the commandline I get no error and the communication against FrameworkServiceClient Works nicely.
Anyone got an idea?
I have added a service Reference and are working against it like this:
Code: Select all
try
{
SwitchKingServer.FrameworkServiceClient t = new SwitchKingServer.FrameworkServiceClient();
}
catch (Exception e)
{
System.IO.File.AppendAllText(@"c:\data\YouDidIt.txt", "Error: " + e.Message + Environment.NewLine);
}
Code: Select all
Could not find default endpoint element that references contract 'SwitchKingServer.FrameworkService' 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.
Anyone got an idea?