Geeks With Blogs

News




ThreadAbortException my experiments with //Web

Recently, one of the queries I had was on “TCP error code 10060: 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” while consuming a web service over proxy settings.  Setting the UseDefaultWebProxy to true didn’t help with this error.

I had earlier written a post on explicitly setting the proxy in the configuration file for Web Services.   The scenario here though was, a WCF Service Client trying to consume the web service.

However, the same work around proved helpful.  After setting the proxy explicitly, the web service could be consumed by the WCF Client.

The proxy setting that you want to add to the config file is as below:-

<system.net>
<defaultProxy>
<proxy
usesystemdefault = "false"
proxyaddress="http://address:port"
bypassonlocal="false"
/>
</defaultProxy>
</system.net>

This would go within the <configuration> </configuration> tags.  You can read the post written earlier at http://geekswithblogs.net/ranganh/archive/2005/08/29/51474.aspx 

Cheers !!!

Posted on Monday, January 4, 2010 5:08 PM ASP.NET | Back to top


Comments on this post: Resolving the “TCP error code 10060: A connection attempt failed…” while consuming a web service

# re: Resolving the “TCP error code 10060: A connection attempt failed…” while consuming a web service
Requesting Gravatar...
Давно искал как это делается, буду чаще заходить на Ваш блог.

Left by футболки онлайн on Feb 08, 2010 5:26 AM

# re: Resolving the “TCP error code 10060: A connection attempt failed…” while consuming a web service
Requesting Gravatar...
Its always good to learn tips like you share for blog posting. As I just started posting comments for blog and facing problem of lots of rejections. I think your suggestion would be helpful for me. I will let you know if its work for me too. Thank you for sharing this beautiful articles. keep going, best of luck
Left by SharePoint Courses on Apr 10, 2010 6:37 AM

# re: Resolving the “TCP error code 10060: A connection attempt failed…” while consuming a web service
Requesting Gravatar...
I got a good definition for TCP error code 10060: 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. Cheers
Left by Herniated Neck Disk on Apr 19, 2010 7:09 AM

# re: Resolving the “TCP error code 10060: A connection attempt failed…” while consuming a web service
Requesting Gravatar...
s o what can i do
Left by supra shoe on Apr 28, 2010 8:43 PM

# discount watches
Requesting Gravatar...
The new high can browse your article
Left by snzdheh@yahoo.com on May 06, 2010 2:08 PM

# re: Resolving the “TCP error code 10060: A connection attempt failed…” while consuming a web service
Requesting Gravatar...
Another reason that I would regard joining a political party to be such a valuable thing is that dramatically positive and liberating experience.
Left by jungle force boots on May 06, 2010 6:48 PM

# re: Resolving the “TCP error code 10060: A connection attempt failed…” while consuming a web service
Requesting Gravatar...
I've surfed the net more than three hours today
Left by Auto Insurance on May 30, 2010 10:58 AM

# re: louis handbags
Requesting Gravatar...
just to leave my name and i fu le you
Left by lv-sales on Jul 12, 2010 8:14 PM

# re: Resolving the “TCP error code 10060: A connection attempt failed…” while consuming a web service
Requesting Gravatar...
Resolving the error is an enigma for me still. Even after reading this post I can not do anything with it. The errors are consuming my time a lot.
Left by Hostess on Sep 11, 2010 2:56 PM

# re: Resolving the “TCP error code 10060: A connection attempt failed…” while consuming a web service
Requesting Gravatar...
i am using proxifier to bypass the proxy settings of my college. i am getting this message when i try to connect. what should i do?
Left by arnab dutta on Nov 12, 2010 4:14 PM

# re: Resolving the “TCP error code 10060: A connection attempt failed…” while consuming a web service
Requesting Gravatar...
Architectural Interiors is a company of consultants specialising in the design and fit-out of commercial office interiors. We are passionately committed to creating cost effective workplace environments whilst incorporating your individual needs. Our background and knowledge in office design is exceptional making us one of the leading creative builders in the business.
office design build
office interior design
Left by rooby on Jan 06, 2011 9:21 PM

# re: Resolving the “TCP error code 10060: A connection attempt failed…” while consuming a web service
Requesting Gravatar...
Thanks for that code. i needed this the other day. I actually ended up finding it on an internet marketing website.
Left by jessika on Apr 17, 2011 6:43 PM

# re: Resolving the “TCP error code 10060: A connection attempt failed…” while consuming a web service
Requesting Gravatar...
I was encountered this error in my personal computer. Thank you for this article that is really helpful to us.
Left by Equine Antibiotics on Jun 13, 2011 9:16 AM

# re: Resolving the “TCP error code 10060: A connection attempt failed…” while consuming a web service
Requesting Gravatar...
Thank you! I will remember this the next time I have this problem.
Left by bobby Carswell on Jun 21, 2011 10:59 PM

# re: Resolving the “TCP error code 10060: A connection attempt failed…” while consuming a web service
Requesting Gravatar...
I encountered this one before. This is very helpful. thanks for sharing your knowledge and experience to us

Cuisinart SS-700 Single Serve Brewing System Review
Left by sureji on Jun 24, 2011 7:43 AM

# re: Resolving the “TCP error code 10060: A connection attempt failed…” while consuming a web service
Requesting Gravatar...
Great instructional post. Love the way it was written. You don’t find that many step-by-step walkthroughs out there, not as this one. Thanks for taking the time to put this together.
Diamonds by the Yard Necklace
Left by abser888 on Jul 19, 2011 11:33 PM

# re: Resolving the “TCP error code 10060: A connection attempt failed…” while consuming a web service
Requesting Gravatar...
I admire you for being a kind one. I really solve the problem by following your code. Thank you for sharing this with us
Left by english teaching job in seoul on Jul 20, 2011 5:09 AM

# re: Resolving the “TCP error code 10060: A connection attempt failed…” while consuming a web service
Requesting Gravatar...
i like your code. thanks for sharing, that is very kind of you
Left by dropshipping on Jul 28, 2011 7:30 AM

# re: Resolving the “TCP error code 10060: A connection attempt failed…” while consuming a web service
Requesting Gravatar...
I am also experience this error. Thank you for share a helpful idea to us here.
Left by online tefl courses on Jul 30, 2011 3:55 AM

# re: Resolving the “TCP error code 10060: A connection attempt failed…” while consuming a web service
Requesting Gravatar...
i just want to ask. where should i put these codes? thanks
Left by Lou on Oct 11, 2011 7:33 PM

# Moncler Outlet
Requesting Gravatar...
lovely, and it should be in the weekly poll, but I think the lenght of her dress makes her look older.I would’ve prefer it as in the original.
Left by fancy fancy on Oct 18, 2011 8:42 AM

# re: Resolving the “TCP error code 10060: A connection attempt failed…” while consuming a web service
Requesting Gravatar...
Welcome to Louis Vuitton homme http://www.saclouisvuittonsite.com/ ,you will find the bags you really want.
Left by sac vuitton on Oct 28, 2011 2:42 PM

# Enough With The Fucking spam
Requesting Gravatar...
LMAO. There's so much fucking spam in the comments it blows my mind. How foolish do you spammers think people are? This is an IT BLOG, meaning IT PEOPLE read it.
Anyone stupid enough to click your links about shoes has no place troubleshooting network errors to begin with.
Left by a guy with enough shoes ffs on Nov 03, 2011 7:26 AM

# re: Resolving the “TCP error code 10060: A connection attempt failed…” while consuming a web service
Requesting Gravatar...
I always get instructional post here in this site.These help me a lot. I have subscribed to this site for having informative posts like this.Thanks for taking the effort to make such an excellent article
Left by Online Shopping in BD on Nov 27, 2011 3:41 PM

# re: Resolving the “TCP error code 10060: A connection attempt failed…” while consuming a web service
Requesting Gravatar...
Thanks for the code. I needed it for my muay thai gym website.
Left by mario on Dec 11, 2011 7:51 PM

# re: Resolving the “TCP error code 10060: A connection attempt failed…” while consuming a web service
Requesting Gravatar...
It is a nice post! Thanks for your good work, it helps me a lot! moncler muts will come back again!
Left by moncler jassen on Dec 16, 2011 8:36 AM

# re: Resolving the “TCP error code 10060: A connection attempt failed…” while consuming a web service
Requesting Gravatar...
Your content rich, contains a lot of help to enrich people’s knowledge of the information.
Left by breville 800jexl on Dec 27, 2011 8:07 PM

# re: Resolving the “TCP error code 10060: A connection attempt failed…” while consuming a web service
Requesting Gravatar...
These help me a lot. I have subscribed to this site for having informative posts like this.
Left by breville juice fountain elite 80 on Dec 27, 2011 8:08 PM

# re: Resolving the “TCP error code 10060: A connection attempt failed…” while consuming a web service
Requesting Gravatar...
thx. it these help me a lot. But in my case I set the scriptLocation of the proxy and set autoDetect to true.
Left by fhrn71 on May 25, 2012 6:20 PM

# re: Resolving the “TCP error code 10060: A connection attempt failed…” while consuming a web service
Requesting Gravatar...
I am absolutely amazed at how terrific the stuff is on this site. I have saved this webpage and I truly intend on visiting the site in the upcoming days. Keep up the excellent work!
Left by Xlibris on Jul 26, 2012 6:03 PM

# re: Resolving the “TCP error code 10060: A connection attempt failed…” while consuming a web service
Requesting Gravatar...
tidak mau connect cso
Left by allu on Nov 21, 2012 10:57 AM

# re: Resolving the “TCP error code 10060: A connection attempt failed…” while consuming a web service
Requesting Gravatar...
Thanks A lot. this post really helped me.
Left by Hari on Nov 22, 2012 5:46 PM

# re: Resolving the “TCP error code 10060: A connection attempt failed…” while consuming a web service
Requesting Gravatar...
why are not apply for post matric scholarship
Left by prince akhtar on Aug 11, 2014 6:08 AM

# re: Resolving the “TCP error code 10060: A connection attempt failed…” while consuming a web service
Requesting Gravatar...
Hi,

i am using TMG2010 with two NICs, one for internal and 2nd for External(Internet), the configuration for both NICs are as below the order of NICs are Internal and then External,
Configuration
Internal Network:
IP: 192.168.0.0
DNS: 192.168.0.1
External Network:
IP: 73.67.87.x
GW: 73.67.87.x

External Network

Default Gateway defined
DNS Servers defined
Register this connection’s address in DNS – Disabled
File and Print Sharing for Microsoft Networks – Disabled
Client for Microsoft Networks – Disabled
NetBIOS over TCP/IP – Disabled
Show icon in notification area when connected - Enabled
Internal Network
Default Gateway not defined
DNS Servers defined
Register this connection’s address in DNS – Enabled
File and Print Sharing for Microsoft Networks – Disabled
Client for Microsoft Networks – Enabled
NetBIOS over TCP/IP – Enabled
Show icon in notification area when connected – Enabled

i am using internal DNS server like 192.168.0.1 and i use dns forwarder. i am using ISP DNS server ip in DNS forwarder tab.
My DNS server is working fine for internal and external name resolution, after some time internet browsing stop suddenly, some time its stop after 2 to 3 hour some time it after 7 to 8 hour. when internet browsing stp then i can ping to external site like google, cnn and yahoo etc. i can also tracert to external sites and my request complete, its working ok, but when i donslookup then it show request timeout for external sites, but dns working ok for internal site. i have dns installed on active directory. i did not have dns server on TMG2010. My tmg2010 is upto date with SP2 and rollup5 from Microsoft.
I got following error
Technical Information (for support personnel)
• Error Code 10060: Connection timeout
• Background: The gateway could not receive a timely response from the website you are trying to access. This might indicate that the network is congested, or that the website is experiencing technical difficulties.
• Date: 9/24/2014 3:30:18 PM [GMT]
• Server: abc.com
• Source: Firewall

Then i have to do following task for internet working.
TMG Managenment Console-->Networking--> Network rules-->NAT address section and i have to change my External ip address then browsing start and working fine for some time.
with these setting i have rum tmg2010 for 2 to 3 years its ok now it crated problem however i did not any change in rules or configuration, i have some publishing rules for exchange and websites which always working even when dns not working properly.
can anyone help me to sort-out this issue.

Thanks in advance.


Left by fredup on Sep 24, 2014 9:27 PM

# re: Resolving the “TCP error code 10060: A connection attempt failed…” while consuming a web service
Requesting Gravatar...
so where do we paste the code that you provided??
How do we do it??
Left by Sam on Oct 15, 2014 11:14 AM

Your comment:
 (will show your gravatar)


Copyright © Harish Ranganathan | Powered by: GeeksWithBlogs.net | Join free