I have a Window Service thats hosts wcf:
protected override void OnStart(string[] args)
{
if (serviceHost != null)
{
serviceHost.Close();
}
serviceHost = new ServiceHost(typeof('myservicetype'));
NetTcpBinding binding = new NetTcpBinding(SecurityMode.None);
serviceHost.AddServiceEndpoint
(typeof('myservicetype'),
binding, ConfigurationManager.AppSettings["myconfig"]
);
serviceHost.Open();
Console.ReadLine();
}
the wcf listen to requests, one of the request is to open notepad on the server,
this doesnt work because the service is running on session 0(no gui...),
how can i fix this?