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

Replace a TextBox based on DropDownList choice
Total revenue between two dates not working c# ms access database
Opening WPF Window from another Window
Self Hosted WCF Service throws Error Message “405 Method not allowed”
How to use group by with several joins
How to use group by and min statment of linq for one array?
How to filter a nested relationship
Are tags like asp:xxx the best way to implement data in an ASP.NETapplication?
Deleting a single registry value in C#
C# Replace a text in string with if the text contains in String list
ASP.Net C# Object Persists after Saving to Session Once
Web API - Detecting Client Domain
Stackexchange Redis - How to get large number of records paged
bootstrap select dropdown loading issue
Setting ConverterCulture using x:Static
SQL query to Linq Lambda Expression - Join same table with group condition

Categories

HOME
asterisk
algolia
domain-driven-design
pyspark
azure-database-mysql
opc-ua
overrides
opacity
browserstack
osx-yosemite
yacc
sahi
software-collections
gcloud
guidewire
email-attachments
tmux
comma
android-notifications
react-select
appsettings
nsoperation
openscad
template10
versioning
cucumberjs
google-calendar-api3
google-street-view
accordion
gpo
git-branch
android-xml
inspec
akamai
snapkit
apache-falcon
aweber
realloc
kepserverex
form-fields
ng-lightning
wicket-tester
aspnetboilerplate
f#-fake
ocpjp
easyquery
lucee
visio-2010
aws-rds
jtextarea
critical-section
toggleclass
papyrus
consolidation
indoor-positioning-system
rowname
jde
jsondoc
jersey-test-framework
apache2-module
markerspiderfier
jquery-draggable
jts
targetprocess
gmaps4jsf
numerical-recipes
launcher
jsonmodel
indic
disparity-mapping
twitter-finagle
episerver-7
sendy
yandex-api
sqldatasource
kuka-krl
carrier
node-amqp
aspnet-compiler
qgraphicsscene
google-checkout
pudb
mmo
database-restore
freeimage
m3u
expresso-store
pdf-reader
optimistic-concurrency
umfpack
log-shipping
openwrap
jquery-click-event
windows-xp-embedded
datarelation
simultaneous
rpxnow
ffdshow

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