473,406 Members | 2,259 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,406 software developers and data experts.

Web Service using SSL on a new port

Hi,

I have created a web service which is using SSL. I already have another web
service running on the same server using SSL therefore I have to use another
port.

But I get the following error when I try to call my web service. Is there
any way to avoid this error?

The underlying connection was closed: Could not establish trust relationship
for the SSL/TLS secure channel.

Regards

Henrik Skak Pedersen
Feb 1 '06 #1
1 2988
Hi Henrik,

Welcome to the MSDN newsgroup.

From your description, you have deployed an ASP.NET webservice on your
server and the webservice is protected through SSL protocol. Since there is
another existing IIS site using SSL, you have configured the new IIS site
(in which your webservice is deployed) to use a new SSL port. However, when
you try calling the new webservice(through SSL/https), you're getting the
"the underlying connection is closed..." error , correct?

Please feel free to let me know if there is anything I misunderstand.
Generally speaking "the underlying connection is closed..." is a common
error message when the client side fail to establish network connection
(ususally http connection) with the server. I think first we can check the
server's SSL configuration to ensure it works correctly. To do this, we can
put some simple aspx pages in the IIS server's application virtual
directory(or just the application virtual directory your webservice
deployed). Then, try visting them through https address from client
machine's IE browser to see whether the page can be displayed without any
error or warning. When there is something incorrect with the SSL/https
setting of the server, the browser will popup a dialog to display the
problem. For example, the server certificate is not following a trusted
path at clientside or the server certificate's servername dosn't match the
servername in the url client application request, etc... Such error or
warning can be handled or ingored when we visit the SSL protected pages in
IE browser, however, when we programmatically request those pages, this
will lead to the "the underlying connection is closed...." error.

Please have a test on the above things. BTW, the server's IIS log is
another useful information we can check.

Hope this helps.

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Feb 2 '06 #2

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

Similar topics

3
by: Melissa Wallis | last post by:
I am using python and omniORB for a client program. The server is on another machine using an ACE TAO orb. I have been unable to figure out how to talk to a different naming service without using...
2
by: karl | last post by:
I have a windows service that kicks off a 'monitor' thread which in turn kicks off 4 additional threads. These 4 threads basically are listen on a designated socket and report back any errors...
4
by: Kris | last post by:
I have a Windows Service in C# talking to a serial port and using Remoting. It also uses several COM objects. On customer's computer the service will occassionally hang somewhere - the service...
1
by: Jonah Olsson | last post by:
Hi guys, I need to listen for incoming requests from a Java web service application (or actually JAXB) on a certain port on the server. The .NET application receiving the request is running on...
4
by: naveed | last post by:
I have the simple Hello World web service running in debug mode on my development machine (XP Pro SP2). I'm using VS2005. I'm able to access it from my machine. When I try to access it from...
4
by: joe bloggs | last post by:
I am writing a mobile application to interface with a legacy system and I am planning to use web services to communicate with this system. The legacy system receives data through a serial port. ...
3
by: Fredric Ragnar | last post by:
Hi, I am making a prototype system with Remoting in the bottom of the system. An XML Web Service is using the remote object on an IIS to present data. I am using a TcpChannel for communicating...
3
by: jwpaco | last post by:
I am new to services and I have quite the task. I need a windows service that will, once started, open a socket and listen for client connections. When a connection is made, the client will want...
2
by: heddy | last post by:
Howdy folks. I am trying to build a web service using the following configuration: I have Windows 2003 Server running in VMware. I have IIS set up on it. I installed the .NET 2.0 package on...
5
by: mivey4 | last post by:
Hi, First off, I am aware that this is a very heavily documented error and I have done my homework for throughly researching probable causes before deciding to post my problem here. At this point,...
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: 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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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
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,...

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.