C# Windows Service fails to start fast enough?

I think this is most likely due to the strong name signing that you have on your executable. In general, it's not good practice to do that on executables ( see here ). I have also experienced the same problem in one of my projects, where an executable took an incredible amount of time to start, and turned out it was due to strong name signing the executable (.NET 2.0 as well).

I think this is most likely due to the strong name signing that you have on your executable. In general, it's not good practice to do that on executables (see here). I have also experienced the same problem in one of my projects, where an executable took an incredible amount of time to start, and turned out it was due to strong name signing the executable (.NET 2.0 as well).

I just figured out that assembly isn't signed, the rest are. It uses a few assemblies which are signed but the service itself isn't. – mntgoat Apr 22 at 14:42 your code looks fine otherwise.

I wonder what is causing the issue as well.. – Can Gencer Apr 22 at 15:14 I do have a rollingfile appender with log4net, not sure if that could cause the problem. – mntgoat Apr 22 at 15:17 You might try to but some trace messages here and there and try to see how far the app gets. In my case the onstart code wouldn't even get executed.

– Can Gencer Apr 22 at 15:23 I tried that with the logger and yeah not even the main method would get in. I really think it might be the signing thing, maybe the other assemblies that have signing are affecting the loading? – mntgoat Apr 22 at 16:32.

I had such a behaviour after using a authenticode certificate from verisign and a firewall rule blocked the trustcenter :-).

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions