F
Frasse
Hello All!
I also have the unfamous error described in subject. I created the
HelloWorld webservice simplest way by uncommenting the HelloWorld
source. I then create a client with the following code
Public Class Form1
Inherits System.Windows.Forms.Form
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim ws As New Service1
Try
MsgBox(ws.HelloWorld())
Catch ex As Exception
MsgBox(ex.ToString())
End Try
End Sub
End Class
I then place the HelloWorld.EXE in wwwroot and executes the EXE from
another PC on intranet with a URL like "http://pc165/HelloWorld.EXE".
The client fails with exception:
System.Net.WebException: The underlying connection was closed: Unable
to connect to the remote server.
at System.Net.HttpWebRequest.CheckFinalStatus()
at System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult
asyncResult)
at System.Net.HttpWebRequest.GetRequestStream()
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object[] parameters)
at HelloWorld.localhost.Service1.HelloWorld()
at HelloWorld.Form1.Button1_Click(Object sender, EventArgs e)
Please help, Im really stuck on this one!
I also have the unfamous error described in subject. I created the
HelloWorld webservice simplest way by uncommenting the HelloWorld
source. I then create a client with the following code
Public Class Form1
Inherits System.Windows.Forms.Form
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim ws As New Service1
Try
MsgBox(ws.HelloWorld())
Catch ex As Exception
MsgBox(ex.ToString())
End Try
End Sub
End Class
I then place the HelloWorld.EXE in wwwroot and executes the EXE from
another PC on intranet with a URL like "http://pc165/HelloWorld.EXE".
The client fails with exception:
System.Net.WebException: The underlying connection was closed: Unable
to connect to the remote server.
at System.Net.HttpWebRequest.CheckFinalStatus()
at System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult
asyncResult)
at System.Net.HttpWebRequest.GetRequestStream()
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object[] parameters)
at HelloWorld.localhost.Service1.HelloWorld()
at HelloWorld.Form1.Button1_Click(Object sender, EventArgs e)
Please help, Im really stuck on this one!