Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

Access denied on health vault while offline connection

$
0
0

Hi,

   I am trying to update records from my applications.So i am going for healthvault offline connection but i am getting Access denied error.I have lot of search on internet but nothing working.Below is my code please suggest that there is any setting misses by me or some thing missing line of code.

OfflineWebApplicationConnection offlineConn = new OfflineWebApplicationConnection(new Guid(Application), ConfigurationManager.AppSettings["HealthServiceUrl"] + "wildcat.ashx", l_PersonId);
                offlineConn.Authenticate();
                HealthRecordAccessor accessor = new HealthRecordAccessor(offlineConn, l_RecordId);
                HealthRecordSearcher searcher = accessor.CreateSearcher();
                HealthRecordFilter filter = new HealthRecordFilter(BloodGlucose.TypeId);
                searcher.Filters.Add(filter);
                HealthRecordItemCollection items = searcher.GetMatchingItems()[0];

Kind Regards

Satinder Singh


Viewing all articles
Browse latest Browse all 4410

Trending Articles