For Programmers: Free Programming Magazines  


Home > Archive > Microsoft Webservices > June 2005 > Re: Getting error "The underlying connection was closed: Unable to connect to th









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Getting error "The underlying connection was closed: Unable to connect to th
Nassos

2005-06-02, 4:00 pm

Hi Rama,
First check the permitions of the IIS of the server, and if the server has
an router check the log of the router and see the message code of the
particular denied and give access to that message code.
I run to the same problem two times and both of them was server issue and
not of the code in the webService.
hope that helps.
"rama" <rama535@hotmail.com> wrote in message
news:OFagWKwWFHA.3760@TK2MSFTNGP15.phx.gbl...
> Hi,
>
> I am getting the "The underlying connection was closed: Unable to connect
> to
> the remote server." error while sending the tModel. Please find the code
> below.
>
>
> Publish.Url ="https://machinename/uddi";
>
> Publish.User="test";
>
> Publish.Password="password";
>
> Publish.AuthenticationMode = AuthenticationMode.UddiAuthentication;
>
> SaveTModel stm = new SaveTModel();
>
> stm.TModels.Add();
>
> stm.TModels[0].Name = "abhi-test";
>
> stm.TModels[0].Descriptions.Add("en","Insert description here");
>
> stm.TModels[0].OverviewDoc.OverviewURL =
> "http://machine/GETDATA/test.wsdl";
>
> /string sTModelKey = "";
>
> //Send to UDDI
>
> try
>
> {
>
> TModelDetail tmd = stm.Send();
>
> sTModelKey = tmd.TModels[0].TModelKey;
>
> }
>
> catch (UddiException ue)
>
> {
>
> Console.WriteLine ( ue.Message );
>
> Console.ReadLine ();
>
> //return;
>
> }
>
> catch (Exception er)
>
> {
>
> Console.WriteLine ( er.Message );
>
> Console.ReadLine();
>
> //return;
>
> }
>
>
>
> Your help will be appriciated
>
>
>
> Thanks & Regards,
>
> Rama
>
>



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com