Can't connect to HealthVault?
Getting connected to HealthVault can be a little tricky. Please try these troubleshooting steps if you're having trouble.
Client is getting one of the following error messages with a WebException (these errors may not be exact quotes):
- The connection was refused by the remote host.
- The request timed out while waiting for a response.
- For security reasons DTD is prohibited in this XML document. To enable DTD processing, set the ProhibitDtd property on XmlReaderSettings to false and pass the settings into XmlReader.Create method.
Verify the HealthServiceUrl and ShellUrl in the application web.config.
<add key="ShellUrl" value="https://www.healthvault-ppe.com/" /> <add key="HealthServiceUrl" value="http://platform.healthvault-ppe.com/Platform/" />
<add key="ShellUrl" value="https://account.healthvault.com/" /> <add key="HealthServiceUrl" value="https://platform.healthvault.com/Platform/" />
If you are getting the “For security reasons DTD is prohibited in this XML document” error, the most likely cause is an incorrect HealthServiceUrl. This error occurs when the response to an SDK request is HTML.
Gather proxy server configuration (if any):
- Open Internet Explorer.
- Go to Tools>Internet Options.
- Select the Connections tab.
- Click LAN settings.
- Under Proxy server, note the Address and Port, if present.
If proxy settings were configured, verify that those proxy settings are present in the web.config:
- Open the web.config for the application in an editor.
- Scroll down to the <system.net> section.
- Verify the <defaultProxy> element is present.
If the <system.net> or <defaultProxy> elements are missing, add them. Place the proxy server and port settings with those retrieved in step 1. If no port, leave off the “:port” portion of the address.
<defaultProxy> <proxy usesystemdefault = "false" proxyaddress=” http://proxyserver:port” bypassonlocal="true" /> </defaultProxy>
If connection errors continue to occur, other tools must be used to diagnose the problems.
- Install Fiddler v2 from http://www.fiddler2.com/Fiddler2/version.asp.
- Start Fiddler.
- Configure Fiddler to decrypt HTTPS traffic.
- In Fiddler, go to Tools>Fiddler Options.
- Select the Decrypt HTTPS traffic checkbox.
- Click OK.
- Run the scenario that causes the connection problem.
- Analyze the Fiddler logs.