Salve
ho seguito la seguente guida:
http://www.sharepointpals.com/post/Step-by-Step-approach-to-create-a-Provider-Hosted-Application-in-SharePoint-2013
per far girare un app provider-hosted (con pattern MVC) su un iis local ovviamente con le dovute correzione per la Start page nell'app manifest e con i link indicati non in https ma in http.
Cmq l'app parte, sharepopint me ne chiede il trust solo che quando arriva sul metodo:
protected override SharePointContext LoadSharePointContext(HttpContextBase httpContext)
{
return httpContext.Session[SPContextKey] as SharePointHighTrustContext;
}
va in " Object reference not set to an instance of an object." su SharePointHighTrustContext
Faccio presente che per la medesima app ho avviato in debug su iis express e tutto funaziona.
La app l'ho hostata nel site sulla porta 80 , come da guida e su questo iis in locale gira anche sharepoint 2013.
mi sapete dare qualche delucidazione in merito?
Saluti