473,386 Members | 1,873 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Call to external webservice returns error "System.Net.WebException: The underlying connection was closed: Unable to connect to the remote server."

I have a VB.NET serviced component (COM+), running on a lan, that
calls out to an external web service to place an order with a
supplier.

The problem machine is the middle tier (COM+) for our in house
applications, and also has a mail server to service a 100 stores
(don't ask me why, I don't like this either).

The call to the webservice works correctly on our test COM+ machine
but fails on the production machine with the above error. It also
works correctly from my development machine.

I have no control over the implementation of the webservice.

From the problem machine, I can access the asmx via internet explorer
and see web methods and descriptions.

The machine.config is in its default state (no proxy specified).

The network admin has given both COM+ machines (and my developer
machine if I run it from here) the ability to bypass the proxy server,
thus there are no settings specified (or required to browse the web)
in the IE LAN settings. I did this as I couldn't get it to work by
supplying credentials programmatically ( eg svr.PreAuthenticate =
true; and svr.Proxy.Credentials = new
System.Net.NetworkCredential("username","password" ,"domain");).

I have run netstat -p TCP on the production COM+ machine. On that
occassion there were probably 20 connections in the TIME_WAIT state
and probably 40 ESTABLISHED.

I am about to rebuild the serviced component to return the stack trace
rather than exception.tostring. Hopefully that might reveal more
detail.

Any help is appreciated.

Regards,

Ross
Nov 23 '05 #1
2 10755
PS.

It is framework v 1.1 SP1, and WSE 1.0

Nov 23 '05 #2
This was fixed by clearing an old (no longer existing switch or server)
registry setting for the default gateway from a previous version of IE.
I searched the registry for proxy settings and found this one, deleted
it, and had to restart, refresh components in COM+ to get it to work.

Essentially in this case I am not supplying the proxy address /
credentials programmatically, and the machine this is installed on has
to be able to bypass the proxy server to access the internet. Using
the default gateway. I guess it must first look for any IE proxy
settings, and tries to use them. I dont fully understand but it might
also depend on the user context under which the application is running.
In this case I have COM+ impersonating a network user, and this might
cause the web classes to look for a profile (roaming profiles) on the
COM+ machine when it goes to look for IE settings?

I am interested to understand how this works.

Nov 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Paul | last post by:
Hi, I am using .NET 2003 (7.1.3088 Framework 1.1.4322) on Windows Server 2003. After I installed BizTalk 2004 on same machine I was not able to open web project. Error: "Unable to open Web...
0
by: huobazi | last post by:
I have many dropdownlist controls in my ascx (and use LoadControl in a aspx fiel) file,so i write a method "InitList(DropDownList list,string strsql,string TextField,string ValueField)" but when i...
3
by: Borr | last post by:
Hi, I have an ASP .NET page, that runs client side timer that does something on the Server side and after that loads another page. So I have on client side something like : function...
2
by: Lenn | last post by:
Hello, I am using reflections to get Parameters and their types of a COM Interop Assembly method. ParameterType.FullName returns "System.Boolean&" what's the significance of & at the end? ...
0
by: bazzer | last post by:
hey, i am using visual basic.net 2003 and have an ASP.NET webform application thats accessing a microsoft access 2003 database. i kept getting the following error when i tried to run it: ERROR ...
3
by: Marshall | last post by:
Hello, I am wondering if it is possible to call a remote web service using ATLAS and if so, how. I have read several docs which show how to call a web service that is within the same project as...
4
by: JackBlack | last post by:
Hi, all! Need a little help tracking down a runtime error problem. I'm getting this error: "Unable to cast object of type 'myStruct' to type 'myStruct'... but the two types are identical! I...
2
by: Jay | last post by:
Hello, I have created a simple web service and I have deployeed it in IIS server. I have 2 versions of ASP.NET 1.1.4322 and 2.0. But when I access webservice I get error.. Server Application...
5
by: Simon | last post by:
I heard that we could do that by using AJAX. Could anybody share how to do it? Thanks.
3
by: mohsinews | last post by:
Hey, Hope you are all doing good. I am a new bee here. I have recently transfer a website from one hosting server to another and got the error message "Fatal error: Unable to read 4761 bytes...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.