tags:

views:

25

answers:

2

I have a wcf service inside a windows service. Inside the wcf service I have a http listener which needs to be started automatically when the windows service is started. Any ideas?

A: 

can you not use IIS to host the WCF service, it has the WAS (Windows Activation Service ) to start the WCF Service?

Iain
+1  A: 

Thanks for the answers but I found the solution In order to have your constructor called, you need this:

[ServiceBehavior(InstanceContextMode = InstanceContextMode.Single, ConcurrencyMode = ConcurrencyMode.Single)]

phm