Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > .NET Web Services
| Search | Today's Posts | Mark Forums Read
.NET Web Services Discussions about .NET XML Web Service technologies including ASMX files, WSDL and SOAP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Web Services section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old August 9th, 2005, 12:48 AM
Registered User
 
Join Date: Aug 2005
Location: bangalore, , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default The underlying connection was closed: Unable to co

HI All

I am trying to build a test remoting project. i have created one class library project and build one clsRemote file which returns Hello message. In that i have included one web.config file having <wellknown mode="Singleton" type="clsRemote.Class1, clsRemote" objectUri="PortData.soap" /> where clsRemote is the namespace and class1 having a function Hello.
this class lib is in my local machine and when i try to connect to this class i gets a error that "The underlying connection was closed: Unable to connect to the remote server." pls suggest what may be the prob.
on client side config file i am using <client url="http://localhost:8080/clsRemote">
            <wellknown type="clsRemote.Class1, clsRemote" url="http://localhost:8080/clsRemote/PortData.soap" />
        </client>

rgds,
Anurag

  #2 (permalink)  
Old August 17th, 2005, 11:15 PM
Registered User
 
Join Date: Aug 2005
Location: New Delhi, Delhi, India.
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Dinesh Singh Bisht Send a message via Yahoo to Dinesh Singh Bisht
Default

hey Anurag

Are you able to access this web service using the url you have specified
i mean
http://localhost:8080/clsRemote/PortData.soap"

I am not very much sure about your problem
but this problem generally comes when you try to access something which you are not able to access to. like you are not able to access a web services on some IP.
you try to access the same using just URL in your explorer if you could do so then the problem is something else
but if you can't access from the browser even then the problem is of accessibility.

I hope this will help.




DSBisht


Similar Threads
Thread Thread Starter Forum Replies Last Post
The underlying connection was closed: jhouse .NET Web Services 33 September 21st, 2011 04:26 PM
The underlying connection was closed: An unexpecte adabass .NET Framework 1.x 0 October 12th, 2007 08:56 PM
The underlying connection was closed: unable to co badyalsk .NET Web Services 0 January 23rd, 2007 04:44 AM
The underlying connection was closed: unable to co badyalsk .NET Web Services 0 January 23rd, 2007 04:42 AM
Underlying connection was closed r_ganesh76 .NET Web Services 0 May 4th, 2006 04:49 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.