Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Sahrepoint 2013 app provider-hosted SharePointHighTrustContext Object reference not set to an instance of an object

$
0
0

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


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>