Self-hosted WCF service inaccessible in IIS+AppFabric

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!

wcf
iis
appfabric
self-hosting
wcf-hosting
asked on Stack Overflow Jun 19, 2013 by Valo

1 Answer

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.

answered on Stack Overflow Jun 20, 2013 by Valo • edited Feb 3, 2015 by Aiden Strydom

User contributions licensed under CC BY-SA 3.0