65.9K
CodeProject is changing. Read more.
Home

HTTP status 404: Not Found error while accessing WCF service through an ASMX client

starIconstarIconemptyStarIconemptyStarIconemptyStarIcon

2.00/5 (1 vote)

Dec 31, 2009

CPOL
viewsIcon

17335

HTTP status 404: Not Found error while accessing WCF service through an ASMX clientI have personally faced this error without any accurate reasons explained in the server's log/trace. With some trial and error, I just managed to resolve it. Here is how it worked for me.Reason 1:If you...

HTTP status 404: Not Found error while accessing WCF service through an ASMX client I have personally faced this error without any accurate reasons explained in the server's log/trace. With some trial and error, I just managed to resolve it. Here is how it worked for me. Reason 1: If you have recently modified the address of your WCF-services' basicHTTP endpoint, this new address does get updated in the client's web.config automatically by just updating the web-reference (should it not do it as it does when the web-reference ia added for the first time?). You'll need to manually update the web-reference address in the client web.config to get it working. Reason 2: If you are using the "TransportCrendentialOnly" mode at the WCF-servcie endpoint, if you can, switch to "Transport" mode, it works. Helpful? Do post your resolutions, if you got any more on this problem. Thankyou. :)