WebService not working when automatic configuration script is acti

P

Praveen

Hi,

One of my clients has got the 'Automatic Configuration Script' in LAN
Settings set to their proxy settings. Due to this my webservices could not be
invoked from their end and gives an 'HTTP : 404 Not Found' error.

The credentials are passed to the web services in the following way :-

credentialCache.Add(new
Uri("http://ecosystem1.maximizelearning.com/"),"Basic",new
NetworkCredential(frmProxyInputs.txtProxyUserName.Text.Trim(),
frmProxyInputs.txtProxyPassword.Text.Trim()));

webproxy.Credentials=credentialCache.GetCredential( new
Uri("http://ecosystem1.maximizelearning.com/"), "Basic" );
objServerDate.Proxy = webproxy;

This works on all other proxy setups.

Could anyone please help me in resolving this issue.

Regards,
Praveen Balagopalan.
 
D

Dan Rogers

Hi,

I think you will find that you need to create a WebProxy class and set the
credentials on that class and then set the Proxy property to that instance
instead of setting it to a Credential class.

I hope this helps

Dan Rogers
Microsoft Corporation

--------------------
 

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,997
Messages
2,570,239
Members
46,827
Latest member
DMUK_Beginner

Latest Threads

Top