473,470 Members | 2,134 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

no response from webservice

Jan
For an educational program I use a webservice for acces to a central database
on a remote server. The webservice is is being accessed over https. So far
this worked fine on the computersystems in the about 20 schools that are
participating.
On one school however, a problem occurs since they changed from internet
provider.
The problem seems to be to get the response back from the webservice. This
is the error message:
System.Net.WebException: Underlying connection closed: can't make connettion
with remote server
at System.Net.HttpWebRequest.CheckFinalStatus()
at System.Net.HttpWebRequest.EndGetResponse(IAsyncRes ult asyncResult)
at System.Net.HttpWebRequest.GetResponse()
at System.Net.Connection.TunnelThroughProxy(Uri proxy, HttpWebRequest
originalRequest, Socket& socket).

I don't call the HttpWebRequest methods directly from my code, they are
called from within the webserviceproxyclass that I generated with wsdl.exe.

The problem only occurs when the user doesn't have administrational rights.
When the adminstrator himself logs in on the computer, calling the webservice
works fine, like before.

I have no clue yet where to look for the solution. Any suggestions would be
very welcome.

Additional information about the schools LAN (from where the program is
executed): server had windows 2000, clientcomputer has windows XP.
Internetconnection over asdl, no proxyserver used.

Jan
Nov 23 '05 #1
6 5338
Maybe a dumb answer but I'm pretty new to this stuff. Have you allready tried
to use the webservice with your browser? The errormessage makes me believing,
you simply aren't allowed to access the webservice's URL.

Sigi
Nov 23 '05 #2
Jan
thank you for your reaction. In fact your suggestion was the first thing I
tried. When they use the browser they get to see the normal presentation of
the webservice. So in that way nothing goes wrong.

Jan

"Siegfried Glaser" wrote:
Maybe a dumb answer but I'm pretty new to this stuff. Have you allready tried
to use the webservice with your browser? The errormessage makes me believing,
you simply aren't allowed to access the webservice's URL.

Sigi

Nov 23 '05 #3
Another posting brought me to a new idea. Does your Client use the IE proxy
settings?

The posting I refer to has the subject "proxy support" and was postet by
"Scott" at 01.02.2005 18:04.
Nov 23 '05 #4
Jan
In addition to my first post the following question: I try to find
information about the "TunnelThroughProxy" method. According to the error
message this should be a method of the System.Net.Connection class. But in
Microsofts reference I cannot find either a System.Net.Connection class or a
TunnelThroughProxy method. Does anyone have suggestion how to find
information about these?

Jan
Nov 23 '05 #5
Hello Jan,
Those are private/internal classes, thats why. If you really want to dig
in you would need to use reflector [0]
[0] - http://www.aisto.com/roeder/dotnet/

HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
In addition to my first post the following question: I try to find
information about the "TunnelThroughProxy" method. According to the
error message this should be a method of the System.Net.Connection
class. But in Microsofts reference I cannot find either a
System.Net.Connection class or a TunnelThroughProxy method. Does
anyone have suggestion how to find information about these?

Jan

Nov 23 '05 #6
EasyStar
1 New Member
Hi Jan, I am experiencing a similar problem and wonder if you have found a solution?

We get this message when attempting to bypass the configured proxy server by configuring an exception in Internet Explorer or adding an entry to the BypassList:

System.Net.WebException: The underlying connection was closed: Unable to connect to the remote server. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at System.Net.Connection.TunnelThroughProxy(Uri proxy, HttpWebRequest originalRequest, Socket& socket)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.CheckFinalStatus()
at System.Net.HttpWebRequest.EndGetRequestStream(IAsy ncResult asyncResult)
at System.Net.HttpWebRequest.GetRequestStream()
at System.Web.Services.Protocols.SoapHttpClientProtoc ol.Invoke(String methodName, Object[] parameters)

Our product is in use in a large number of establishments. This issue only occurs when connecting through a particular ISP.

Any help would be much appreciated.
Thanks
Ian
May 3 '06 #7

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

Similar topics

0
by: Hans Kesting | last post by:
Hi, I'm trying to create a client for some webservice. BUT I have only limited information: * no WSDL available ("expected Q1-06") (it seems to be written in Java) * I don't have access (yet)...
7
by: stephan querengaesser | last post by:
hi ng, i try to invoke a webservice-method with an filter-object, that contains value types. if i don´t want to filter the return value of the method, i have to pass a new instance of the...
7
by: Nalaka | last post by:
Hi, I created a sinple web service that returns a dataSet. Then I created a client program that uses this web service (that returns the Dataset). My question is, how did the client figure...
5
by: Stacey Levine | last post by:
I have a webservice that I wanted to return an ArrayList..Well the service compiles and runs when I have the output defined as ArrayList, but the WSDL defines the output as an Object so I was...
2
by: Jannicke | last post by:
Hi. I have a project that contains a webservice. To test my webservice I have another class in the same project. In the project I have added a webreference to my webservice. In my class file i call...
0
by: rakeshkumawat | last post by:
I am facing a problem while reading the result which is loaded in DOMDocument. In which I am sending a request to web service and getting a record of Single Order. This is my VB Code which is i am...
5
by: Jonathan Kay | last post by:
Hi, I'd like to my WCF webservice to work both on SSL and without. Unfortunately searching has led to dead ends, references to changes that only work on the old previous beta versions and I...
1
by: =?Utf-8?B?d2R1ZGVr?= | last post by:
I have a web service hosting a WCF library, which works fine but produced a strange signature when interacting with vs 2005/2.0 clients. My method takes 3 strings and returns a bool as below. ...
10
by: Anton | last post by:
Hi, when accessing a secured 3rd party webservice i'm getting a 401 HTTP Statuscode (unauthorized). When entering the url in a browser and entering the username and password manually, the wsdl is...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.