I have a WCF service, hosted in IIS returning the following error (when trying to call a method or even just browse to the service definition):
“Service not available”
The error log shows a bit more detail:
An unhandled exception occurred and
the process was terminated.Application ID:
/LM/w3svc/1/ROOT/C_wcfServiceProcess ID: 4696
Exception:
System.Runtime.InteropServices.SEHExceptionMessage: External component has thrown
an exception.
Can anyone point me in the right direction to fix this problem?
This problem was being caused b the Execute Permissions in IIS. The virutual directory was set to “Scripts only” and changing this to “Scripts and Executables” has resolved the issue. I’m not sure how you’re supposed to get to this answer from the original error (but fiddling for a while seems to work!)