Monday, October 18, 2010

WCF Service Routing Issue With ARR

I have been working with IIS extension Application Request Routing(ARR) for a while, When i try to route WCF service calls to the content servers hosted in the ARR web farm. Interestingly the service calls failed and returns 404.

After doing bit of research over the IIS7 failed request log  it seems WCF service were failed in the ServiceModel http module


MODULE_SET_RESPONSE_ERROR_STATUS
Warning
ModuleName="ServiceModel", Notification="AUTHENTICATE_REQUEST", HttpStatus="404", HttpReason="Not Found", HttpSubStatus="0", ErrorCode="The operation completed successfully.
(0x0)", ConfigExceptionInfo=""
and the content server’s IIS log showed  that the WCF service request were not served. It was clear that the service calls were not routed. 
IIS uses httphandlers for serving the incoming request, after disabling svc handlers from the ARR web directory.. request started to route to content servers Smile
Remove the handlers by adding the following to web.config
       <handlers>
            <remove name="svc-ISAPI-2.0" />
            <remove name="svc-Integrated-4.0" />
            <remove name="svc-ISAPI-4.0_64bit" />
            <remove name="svc-ISAPI-4.0_32bit" />
            <remove name="svc-Integrated" />
        </handlers>

1 comment:

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.