.net-services

.NET Service System.Net.Sockets.SocketException: 'No such host is known'

风流意气都作罢 提交于 2021-02-11 14:19:29
问题 I deployed a .NET Windows Service on Azure Virtual Machine running Windows Server with an opened port that allow me to connect to it, this service is like a server using socket. The problem is that when I try to connect from my PC to that hosted server it doesn't work and I get this exception: System.Net.Sockets.SocketException: 'No such host is known' . The port is opened and visible from my PC. Can someone tell me why I get that exception? If I run locally all works ok. 回答1: The Exception

Configuration System failed to initialize - Windows Service .NET

喜你入骨 提交于 2019-12-11 01:27:20
问题 I created a .NET windows service that installs without any issues on the dev machine. On the server that has only the .NET framework (and no VS installed), since I don't have the VS 2008 prompt, I did the following. I opened the command prompt I did cd C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727 I attempted to install the service using installutil.exe "Path to the service .exe" I get the following exception: Microsoft (R) .NET Framework Installation utility Version 2.0.50727.1433

Can I have multiple services hosted in a single windows executable

送分小仙女□ 提交于 2019-11-27 07:27:16
My question is essentially the same as the following one but the answer did not help me. .NET Windows Service - multiple services in one project Essentially, I have 3 services, lets say "Service1", "Service" and "Service3". ServiceBase[] ServicesToRun; ServicesToRun = new ServiceBase[] { new Service1("Service1"), new Service2("Service2"), new Service3("Service3") }; ServiceBase.Run(ServicesToRun); I also have installer classes with corresponding serviceInstaller.ServiceName = "ServiceX" for each of these services. When I use installutil, i do see all 3 services on the Service manager. However,

Can I have multiple services hosted in a single windows executable

房东的猫 提交于 2019-11-26 22:16:49
问题 My question is essentially the same as the following one but the answer did not help me. .NET Windows Service - multiple services in one project Essentially, I have 3 services, lets say "Service1", "Service" and "Service3". ServiceBase[] ServicesToRun; ServicesToRun = new ServiceBase[] { new Service1("Service1"), new Service2("Service2"), new Service3("Service3") }; ServiceBase.Run(ServicesToRun); I also have installer classes with corresponding serviceInstaller.ServiceName = "ServiceX" for