Last post Apr 24, 2013 03:55 PM by iconabhi113
Apr 23, 2013 11:27 AM|iconabhi113|LINK
I have a asp.net Web Service 2.0 , it is currently hosted in a server. We need to move to a new server soon, when I copy the code and set up the web service in the new Server and browse the project files (asmx) through asmx, it's opening fine. I have a winforms
app which calls one of the urls in this webservice. When it calls the URl, I get an error saying "The request failed with HTTP status 404: Not Found".
What can cause this? and how should I fix it?
Apr 23, 2013 03:22 PM|sukumarraju|LINK
open up the application mappings for the virtual directory that is hosting the webservice, double click on the .asmx mapping and uncheck the "check if file exists" check box. That's it, now IIS lets the request get filtered down correctly.
Apr 23, 2013 05:06 PM|iconabhi113|LINK
Thank you Sukumarraju,
I did that, (Actually I'm using IIS 6.1 in windows server 2008r2), the equivalent to this is to Go to "Handler Mappings" and click on the *.asmx and then click Request Restrictions and under the Mappings tab, Uncheck "Invoke handler only if request is mapped
to". (http://blogs.iis.net/bills/archive/2007/05/25/tip-trick-how-to-turn-off-quot-verify-file-exists-quot-in-iis7.aspx). However,
even after this, it's still throwing that error. Any ideas?
Apr 24, 2013 05:35 AM|sukumarraju|LINK
it's still throwing that error.
check the following
Is the exception thrown when specific method is consumed in WinForms app ?
Also server updates i.e., 2008r2 can block the process.
Apr 24, 2013 03:55 PM|iconabhi113|LINK
Thank you sukumarraju,
The managed pipeline mode did the trick, for some reason it was set to "Classic" and when I changed it to "Integrated", it worked.