webexception 404

D

David

hello all,

I have a windows application that runs a webservice, namelly A, which uses
sessions (i dont know if this is important). some times the requests of the
client (winform) are passed from the webservice A to another Webservice, B,
which is stateless. In the begining, When A tried to apply the webmethod of
B throgh BProxy, I received a webException 401. So I added to Bproxy
credentials:
BProxy.Credentials =System.Net.CredentialCache.DefaultCredentials;
Now, I receive another webException: 404 not found.

The url of B.asmx is ok. Im using IIS 5.1. in the authentication tab in the
IIS, the directory of B has checked only the "integrated windows
authentication".

Thanks, David
 
W

warlord

I've had an almost identical problem to this and after a couple of weeks of
scrounging around and help from others I found the answers (well most of
them).

Firstly, has the IIS Lockdown tool been run on the server. If it has then
chances are WebDAV has been disabled. You will almost certainly have to
enable WebDAV to achieve what you want. Secondly, is the UrlScan utulity
running. If it is then you will need to make some configuration changes to
it.

In my case the UrlScan utility was preventing the request from being
processed by the server - hence the 404 Not Found error. As soon as I
turned off UrlScan my requests got through. I haven't figured out the
configuration changes required to have UrlScan running and still let my
requests though, but when I figure it out I'll post it here.

Cheers,

Cameron
 
W

warlord

David,
I figured out that the 'translate' header must be allowed through UrlScan,
and also the PROPFIND verb. My UrlScan configuration was denying both of
these and was the root of the problem.

Hope this helps.

Cameron
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,186
Members
46,740
Latest member
JudsonFrie

Latest Threads

Top