Getting error while connecting to HealthVault using Windows application RRS feed

  • Question

  • Hi,

         I have already created a web apllication and registered its ApplicationID at HealthVault. Now When I am trying to authenticate and fetch the record through web application (offline access mode), it's working fine. But whenever i am trying to authenticate throug windows application then its throwing error :

    "The underlying connection was closed: An unexpected error occurred on a send.

    InnerException: "Authentication failed because the remote party has closed the transport stream."



    Guid userID = new Guid("8234112A-826E-4e80-859B-7331A7355B56");

    Guid RecordID = new Guid("DFCE3797-883C-47a8-9175-47F2C3509F22");

    OfflineWebApplicationConnection offlineConn = new OfflineWebApplicationConnection(userID);

    offlineConn.Authenticate(); // At this point its throwing error.



    Thursday, July 31, 2008 12:09 PM