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

Sharing DB Access Methods between Client and Server in Entity Framework (C#.Net)
Can a Delphi 4 and/or Delphi 5 executable be integrated into a C# application?
WCF/REST Get image into picturebox?
Sonar-runner Exception with .NET Project
C# List<object> to IList cast bug in Unity3d
Logging lambda expressions
Deserializing response
How to find out size occupied by data table/data set in asp.net C#?
Change DB connection string after publishing a C# console app
excanvas js is not working in IE8 [duplicate]
count number of identical elements in two arrays in linq
WCF logging, set max file size?
LINQ concatenating elements in two string arrays [duplicate]
Trouble with PrintForm Control in C#
Array of different generics
Find node when traversing tree

Categories

HOME
qlikview
javafx
leaflet
cryengine
pandoc
sdk
yuv
docker-compose
symfony-3.2
vsixmanifest
subprocess
olap
angular-universal
fetch
ldap-query
decoding
drush
angular2-pipe
connection-pooling
advertising
typeorm
angular-schema-form
hierarchy
delphi-2010
ocl
intermec
foxpro
opencsv
ios-autolayout
loopback
log4net-configuration
luhn
wunderground
asp.net-webhooks
gstreamer-1.0
stdin
linkurious
quartz
text-extraction
line-endings
geminabox
evaluation
ear
openidm
cancan
sp
optional-parameters
mavlink
universe
hoare-logic
change-password
php-java-bridge
sqlxml
chomsky-normal-form
cascading
newlib
sdkman
gulp-cdnizer
play-json
transport
grails-3.0.9
avd
ultraedit
beagleboard
pymol
numerical-recipes
qxorm
react-os
dotcmis
xts
atg-dynamo
rda
connections
.net-reflector
xcode6.1-gm-seed
xml-validation
listpicker
servicemanager
spawn
idoc
custom-cursor
android-memory
jqzoom
method-call
cryptolicensing
cpack
miniport

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