locked
OfflineWebApplicationConnection Authenticate Error "The application could not be found." RRS feed

  • Question

  • public static OfflineWebApplicationConnection CreateConnection(Guid applicationId)
    {
    	OfflineWebApplicationConnection offlineConn = new OfflineWebApplicationConnection(applicationId,
    		WebApplicationConfiguration.HealthServiceUrl, Guid.Empty);
    	
    	offlineConn.Authenticate(); // Getting Error Here
    	
    	return offlineConn;
    }


    Error Message: The application could not be found.

    I am trying to generate Direct to Clinical identification code. Its working fine with my Application Id but its not working with other providers Application Id.

    Any Idea why its happening or any solution? Thanks in Advance.

    -- Saiful
    Wednesday, April 15, 2009 9:19 AM

Answers

  • Is the application id configured for @ http://config.healthvault-ppe.com

    Also, are you using the PPE url for webservice in web.config (as against production)

    Raj


    Raj HealthVault Developer Tool http://xray.getrealconsulting.com
    Wednesday, April 15, 2009 11:30 AM
  • First place I'd look is your data type permissions.  Also, keep in mind that changes in the application configuration center take up to 30 minutes to take effect.

    If you grant yourself the full set of permissions for online and offline connections (you'll need to reduce those permissions back before you can go live) and are still having problems, let us know.  And if you can provide any additional context and debugging info, that would help.
    Monday, April 20, 2009 5:41 PM

All replies

  • Also getting

    OfflineConnn.AuthenticationToken = "The user must be authenticated to the Health Service in order to have an authentication token."
    Wednesday, April 15, 2009 9:51 AM
  • Is the application id configured for @ http://config.healthvault-ppe.com

    Also, are you using the PPE url for webservice in web.config (as against production)

    Raj


    Raj HealthVault Developer Tool http://xray.getrealconsulting.com
    Wednesday, April 15, 2009 11:30 AM
  • If you're still having issues and Raj's suggestions don't help, I recommend you do some HTTP tracing to identify the source of the problem.  There are a few different tools out there, but the one I recommend most strongly is Fiddler.

    Fiddler was initially developed independently, but was acquired by Microsoft not too far back.  It's still free, and incredibly useful.  It acts as an HTTP (and HTTPS if you choose) proxy and captures all data being sent to and from your client, so you can see all the redirects and find out exactly where the errors are coming from.

    http://www.fiddler2.com/fiddler2/

    Make sure you do the additional steps to have Fiddler capture HTTPS traffic, as almost all HV traffic is HTTPS.  If you don't do this, you won't capture the necessary data.

    http://www.fiddler2.com/Fiddler/help/httpsdecryption.asp
    Wednesday, April 15, 2009 5:25 PM

  • Now the application Id is configured properly but getting error "Access is Denied " in the same line of code.
    Monday, April 20, 2009 6:39 AM
  • First place I'd look is your data type permissions.  Also, keep in mind that changes in the application configuration center take up to 30 minutes to take effect.

    If you grant yourself the full set of permissions for online and offline connections (you'll need to reduce those permissions back before you can go live) and are still having problems, let us know.  And if you can provide any additional context and debugging info, that would help.
    Monday, April 20, 2009 5:41 PM