jump to navigation

CRM: AuthenticationParameters: Object reference not set to an instance of an object October 16, 2018

Posted by juanpablo1manrique in SharePoint.
Tags:
add a comment

Este código me estaba arrojando un error,

AuthenticationParameters ap = await AuthenticationParameters.CreateFromResourceUrlAsync(
new Uri(serviceUrl + “api/data/”));

return ap.Authority;

El error que arrojaba era del tipo

Object reference not set to an instance of an object

Para solucionarlo fue necesario agregar la siguiente línea en el web.config

<httpRuntime targetFramework=”4.6″ />