title: Webservice Connection Refused
body: <p>I have developed a web app using a webservice. Everything works fine in the development environment. I have moved the webservice to the production server in a test folder behind my main website. I can browse to the published service localy on the production server and i can access the remote service from my development machine.</p>
  
  <p>If I run my web app in my development environment I can use the remote webservice no problem. If I move the web application to the production environment the browser outputs this error when the application performs the ajax login method.</p>
  
  <p>The following javascript error is output to the browser</p>
  
  <pre><code>Error: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server.
  
  The status code returned from the server was: 500
  Source File: www.grav80.com/clients/callswharf/Redshift/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_HiddenField&amp;compress=1&amp;_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a1247b7d8-6b6c-419f-a45f-8ff264c90734%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2009.2.826.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3ad2d891f5-3533-469c-b9a2-ac7d16eb23ff%3a16e4e7cd%3a86526ba7%3aed16cbdc%3ab7778d6c
  Line: 15
  </code></pre>
  
  <p>The Following error appears in the event log</p>
  
  <pre><code>Exception information: 
      Exception type: WebException 
      Exception message: Unable to connect to the remote server 
  
  Request information: 
      Request URL: www.grav80.com/clients/callswharf/redshift/login.aspx 
      Request path: /clients/callswharf/redshift/login.aspx 
      User host address: 77.68.58.231 
      User:  
      Is authenticated: False 
      Authentication Type:  
      Thread account name: NT AUTHORITY\NETWORK SERVICE 
  </code></pre>
  
  <p>You can view the behaviour in the test environment here.
  <a href="http://www.grav80.com/clients/callswharf/redshift/" rel="nofollow noreferrer">http://www.grav80.com/clients/callswharf/redshift/</a></p>
  
  <p>You can view the service here 
  <a href="http://www.grav80.com/clients/callswharf/redshift/service/g80cms.asmx" rel="nofollow noreferrer">http://www.grav80.com/clients/callswharf/redshift/service/g80cms.asmx</a></p>
  
  <p>I hope some on can shine some light on this for me.</p>