aspnet_wp unable to make remote connection in .net framework 2.0

S

StealthEX

Hi,
I have a .net 2.0 web service that acts as a messaging hub that takes a SOAP
request from a single source and then sparks of a bunch of requests to
multiple web services. This worked fine in .net 1.1 but now we've
re-engineered it and written it using .net 2.0 and now it doesn't work. We
have nailed the problem and it seems to lie in the fact that the when
aspnet_wp makes a request to an external host, it tries to go via a
non-existent proxy server. How can I force it to bypass any proxy and connect
directly? The internet settings are all correct - is there something in
ASP.NET 2.0 that adds extra restrictions to the ASPNET user (as I said, it
works fine in 1.1).
 
S

StealthEX

Don't ask me specifics, but there are changes in system.net in .net 2.0 from
1.1 so this is why you are experiencing a difference. It looks like your web
service is trying to use the default proxy and in .net 2.0 it digs through
your registry and its obviously picking up this proxy that you say doesn't
actually exist.
To force it to use a direct connection add the following into your
web.config and it will prevent any unecessary proxy detection.

<system.net>
<defaultProxy>
<proxy usesystemdefault="False"/>
</defaultProxy>
</system.net>

Hope it helps!
 

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,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top