The type initializer for 'System.ServiceModel.DiagnosticUtility' threw an exception.
I am using console application for hosting
I am new to WCF just step into
//code which iam getting error
using (System.ServiceModel.ServiceHost host = new
System.ServiceModel.ServiceHost(typeof(HelloService.HelloService)))
{
host.Open();
Console.WriteLine("Host started @ " + DateTime.Now.ToString());
Console.ReadLine();
}
App config of console application
App config for service
//
name="HelloService.HelloService">
//
Please help on this,
Thanks in advance
1 Reply
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Madan ShekarPosted Mar 18, 2019, 1:27 AM