Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IIS uses proxy for webservice request. How to stop this?

I have a problem with a little .Net web application which uses the Amazon webservice. With the integrated Visual Studio web server everything works fine. But after deploying it to the IIS on the same computer i get the following error message:

Ein Verbindungsversuch ist fehlgeschlagen, da die Gegenstelle nach
einer bestimmten Zeitspanne nicht ordnungsgemäß reagiert hat, oder
die hergestellte Verbindung war fehlerhaft, da der verbundene Host
nicht reagiert hat 192.168.123.254:8080

Which roughly translates to "cant connect to 192.168.123.254:8080"

The computer is part of an Active Directory. The AD-Server was installed on a network which uses 192.168.123.254 as a proxy. Now it is not reachable and should not be used.

How do I prevent the IIS from using a proxy?

I think it has something to do with policy settings for the Internet Explorer. An "old" AD user has this setting, but a newly created user does not. I checked all the group policy settings and nowhere is a proxy defined.

The web server is running in the context of the anonymous internet user account on the local computer. Do local users get settings from the AD? If so how can I change that setting, if I cant login as this user?

What can I do, where else i could check?

like image 561
dummy Avatar asked Dec 02 '22 09:12

dummy


2 Answers

Proxy use can be configured in the web.config. The system.net/defaultProxy element will let you specify whether a proxy is used by default or provide a bypass list.

For more info see: http://msdn.microsoft.com/en-us/library/kd3cf2ex.aspx

like image 70
hwiechers Avatar answered Dec 17 '22 17:12

hwiechers


Some group policy settings that may be relevant:

Root \ Local computer policy \ Computer configuration \ Administrative templates \ Windows components \ Internet Explorer \ Make proxy settings per-machine -- by default this is disabled, meaning individual users on the server have customised proxy settings.

Root \ Local computer policy \ User configuration \ Windows settings \ Internet Explorer maintenance \ Connection. In "Automatic Browser Configuration" the value "Automatically detect configuration settings" -- you can set this off to prevent the process trying to detect proxy settings automatically.

That said, using the defaultProxy setting as shown in hwiechers' answer would seem to be a better way of doing it, not affecting other processes or users on the machine.

like image 26
Daniel Bowen Avatar answered Dec 17 '22 17:12

Daniel Bowen