Receiving error: Invalid URI: The hostname could not be parsed

Modified on Mon, 16 Jan 2012 12:05 by CAREWare Help Desk — Categorized as: FAQ

Source:  - Invalid URI: The hostname could not be parsed.
Server stack trace:
   at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
   at System.Uri..ctor(String uriString)
   at System.Net.WebRequest.Create(String requestUriString)
   at System.Runtime.Remoting.Channels.Http.HttpClientTransportSink.SetupWebRequest(IMessage msg, ITransportHeaders headers)
   at System.Runtime.Remoting.Channels.Http.HttpClientTransportSink.ProcessAndSend(IMessage msg, ITransportHeaders headers, 
Stream inputStream)
   at System.Runtime.Remoting.Channels.Http.HttpClientTransportSink.ProcessMessage(IMessage msg, ITransportHeaders 
requestHeaders, Stream requestStream, ITransportHeaders& responseHeaders, Stream& responseStream)
   at Toub.Remoting.SecureClientChannelSink.ObtainSharedKey(IMessage msg)
   at Toub.Remoting.SecureClientChannelSink.EnsureIDAndProvider(IMessage msg, ITransportHeaders requestHeaders)
   at Toub.Remoting.SecureClientChannelSink.ProcessEncryptedMessage(IMessage msg, ITransportHeaders requestHeaders, Stream 
requestStream, ITransportHeaders& responseHeaders, Stream& responseStream)
   at Toub.Remoting.SecureClientChannelSink.ProcessMessage(IMessage msg, ITransportHeaders requestHeaders, Stream requestStream, 
ITransportHeaders& responseHeaders, Stream& responseStream)
   at System.Runtime.Remoting.Channels.BinaryClientFormatterSink.SyncProcessMessage(IMessage msg)

Exception rethrown at [0]:
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at jVersionCheck.jVersionControl.jVersionCheck.get_VersionObject()
   at Client.frmLogin.VersionIsOK()
   at Client.frmLogin.cmdLogin_Click(Object sender, EventArgs e)
Could not connect to the CAREWare server @servername

To resolve the "Invalid URI: The hostname could not be parsed" you can change the server hostname used in the client tier server list to the server IP address. This can be done using the following steps:

  1. Open the CAREWare client Tier
  2. Click on 'Options'
  3. Click on the 'Server List' button
  4. Click 'Add Server'
  5. Add the IP address of the server you are trying to connect to
  6. Click 'Save'
  7. Select the newly added IP address from the server list
  8. Attempt to log in to CAREWare

You may also need to change the proxy settings on the client tier PC where the error is occurring. This can done using the following steps:

  1. Go to the Control Panel and open Internet Options
  2. Click on the 'Security' tab and verify that the trust level is set to 'Medium'
  3. Click on the 'Connections' tab then on 'LAN Settings'
  4. Verify the proxy settings for this PC are correct.
    * By default the settings are the automatically detect settings check box is checked and Bypass proxy server for local addresses check box is checked.
  5. Click OK and then click OK once more

The completion of the steps above should resolve the Invalid URI error.

Back to Errors

Back to Frequently Asked Questions