title: Cannot access web service from VB.NET
body: <p>Several months ago, I wrote an application in VB.Net that accesses a Cold Fusion web service.  The web service (which is sitting on a CF Server on the cloud) was set up as a Web Reference in my VB.Net project.  When I execute the built application on a system running Windows Server 2003, it has no problem whatever consuming this web service.</p>
  
  <p>Fast forward to today.  I am attempting to consume this web service on an adjacent Win7 computer using the same network/connection, and everytime I run the application either in the VS2010 IDE or as the built application, it gives me the error: "The underlying connection was closed:  The connection was closed unexpectedly."</p>
  
  <p>I have made no changes to either the web service or VB.Net code.</p>
  
  <p>What would be causing such an error?</p>
  
  <p>Here is my VB.NET code that consumes the service:</p>
  
  <pre><code> Public Function ConnectedToTheInternet() As Boolean
      Dim myservice = New TestService.testservicecfc()
  
      Try
          myservice.echoString("hello")
          ConnectedToTheInternet = True
      Catch ex As Exception
          Windows.Forms.MessageBox.Show(ex.Message)
          ConnectedToTheInternet = False
      End Try
  
  End Function
  </code></pre>
  
  <p>and here is my web service code:</p>
  
  <pre><code>&lt;cfcomponent output="false"&gt;
      &lt;cffunction name="echoString" returnType="string" output="no" access="remote"&gt;
          &lt;cfargument name="input" type="string"&gt;
          &lt;cfreturn #arguments.input#&gt;
      &lt;/cffunction&gt;
  &lt;/cfcomponenet&gt;
  </code></pre>
  
  <p>I have tried disabling my Windows Firewall, but this had no effect.</p>