I try to develop an office addon which connect outlook to our CRM.
Firsteval, i have test the connection and the function with a console application without problem.
I have in a second time create a vsto project with visual studio and do the same think.
Unfortunately, the connexion don't work any time.
I have an exception when i try to create the Authentification parameters.
AuthenticationParameters ap = AuthenticationParameters.CreateFromResourceUrlAsync(new Uri(serviceUrl + "/api/data/").Result;
The service url is xxxxx.api.crm4.dynamics.com
There's a null Exception and i don't understand why.