c#


Webservice SocketException - Only Breaks On One Application


I have a few applications which use a single Web Service which resides on the same server as the applications.
Why would only one of the applications have a problem connecting to a web service? And is there a way I can better diagnose exactly what the problem is with the connection?
It won't even connect to a web service the application itself is hosting
I have tried running it from my local machine and it works fine (updated the web ref url and the connection string to point to the liver server), which should rule out that the code itself is the problem.
I have tried setting up a different virtual directory to point to the application; and later copying the entrie app to another location on the same server and setting it up there. No luck.
[SocketException (0x274c): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond xx.xx.xx.xx:80]
System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) +239
System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP) +35
System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception) +224
[WebException: Unable to connect to the remote server]
System.Net.HttpWebRequest.GetRequestStream() +5321194
System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) +103
...
Found it... the proxy was the cause of the issue and it is the only application where I specify proxy different from the default:
Since I only need the proxy locally I disabled it on the live web.config with enabled="false"
<defaultProxy enabled="false">
<proxy
autoDetect="False"
bypassonlocal="True"
scriptLocation="http://www.proxy.something"
proxyaddress="http://proxy.com" />
</defaultProxy>

Related Links

writing array values to file C#
How do I send data to the pre-generated Asp.net database?
Binding combobox - WPF & C#
Suppress exception while querying documentDB
WPF treeview context menu
add ComboBox dynamically with Locations in UWP
In the result of the analysis of the SONARQUBE server does not show correctly the Total of lines of code and nor the errors of code
How do I refer to a control in a WPF nested ListView?
Not able to read an XML file in a directory?
ASPX Session State null exception on Postback
Selenium and Aurelia, how make test wait for the page to load and HTTP calls to complete
OpenQA.Selenium.ElementNotVisibleException' in WebDriver.dll while trying to click on the link
Add items to Listbox
How do use LParam in Pinvoke GlobalGetAtomName
Getting the Arizona Standard Time in .net
C# keydown event storing in char variables

Categories

HOME
gulp
oracle-sqldeveloper
phantomjs
reference
spotfire
lithium
checkpoint
travis-ci-cli
genexus
obd-ii
http-status-codes
watson-dialog
mbed
browsermob
javascript-debugger
exchange-transport-agents
appsettings
google-closure-compiler
spring-webflow
url-parameters
gulp-jshint
ds-5
jbossfuse
schedule
ibm-bpm
storefront
ports
node-soap
flickr
voyager
matlab-compiler
powerbi-embedded
wunderground
julia-jump
ninja-forms
amazon-fire-tv
encoder
jsfl
nao-robot
gige-sdk
fckeditor
multi-targeting
petapoco
multi-select
spring-cloud-aws
alarmmanager
joystick
jspx
vga
chomsky-normal-form
overlapping
tvp
windows-kernel
gitk
roslyn-code-analysis
azure-mobile-app
vspackage
android-networking
fileinputstream
tidesdk
applinks
quickfixn
cordova-3
drools-guvnor
os.walk
xmlserializer
tigase
livescript
step
dateadd
nodeunit
html5-filesystem
logo-lang
jfilechooser
myrrix
ironworker
nsnumber
latex-suite
mysql2
gwt2
pymel
generator-expression
volatility
tasklist
hypertable
django-admin-tools
erlide
capitalization
mcpd
virtual-printer
cherokee
httppostedfilebase
backlight
lightopenid
service-layer
hwnd
s60
nscharacterset
calendarextender
coderush-xpress

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App