Click here to Skip to main content
15,861,366 members
Articles / Security
Tip/Trick

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

Rate me:
Please Sign up or sign in to vote.
2.00/5 (1 vote)
31 Dec 2009CPOL 17.2K  
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. :)

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Web Developer
India India
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
-- There are no messages in this forum --