1

For a few weeks now I've been having a really weird problem. I have a couple of services which work just fine when self-hosted in a command line app. However in IIS+AppFabric I cannot access one of the services - I get TimeoutException and am pretty sure that the call doesn't even make it to the service (all services have an aspect to log all calls before doing anything). Note that both services are configured identically with regards to bindings and behaviors by code. I tried many things like putting them on different app pools, disabling some of the transports... And what is really strange that if both services are in one app pool - one of the services works but if I put them on separate threads - the other service times-out. It really drives me nuts...

Also I see pretty often events in the system event log: "A process serving application pool 'Authorization Management' suffered a fatal communication error with the Windows Process Activation Service. The process id was '11852'. The data field contains the error number." The error number is 0x80070218. After the event the service host initializes without problems (I can see my own info log messages) however the service is unreachable.

Does this ring a bell to anyone?

Thanks!

Valo
  • 1,872
  • 2
  • 15
  • 23
  • Here are a few things about the IIS/AppFabric/Services configuration: •Site bindings: http; https; net.tcp 808:*; net.pipe * •Running Windows services: net.pipe listener adapter; net.tcp listener adapter; net.tcp port sharing; www •Enabled protocols for each of the services: http,net.tcp,net.pipe •Each of the services is enabled for auto-start •The application pools use .NET 4.0 in integrated mode with ApplicationPoolIdentity •Each of the pools are enabled for auto-start – Valo Jun 19 '13 at 19:20

1 Answers1

2

It turned out that I had a bug in the initialization of the services' hosts. I was trying something, and when I removed the try code, apparently I didn't delete the first line which was locking some resource.

Anyway, it is a good lesson. Nevertheless, if your services do not work, your initialization might be buggy...

Sorry about the noice.

Aiden Strydom
  • 1,198
  • 2
  • 14
  • 43
Valo
  • 1,872
  • 2
  • 15
  • 23
  • +1 for posting the answer - you never know when someone else might be helped :) – Tim Jun 20 '13 at 22:40