none
The remote server returned an error :(401) unauthorized in Provider hosted app deployment

    Question

  • Hi,

    We are trying to deploy the provider hosted app in server environment . we are getting the "The remote server returned an error :(401) unauthorized" error after deploy the app in server.

    stack Trace:

    [webException:Te remote server returned an error:(401) UnAuthorized.]

    System.Net.HeepWebRequest.GetResponse().

    Followed the same MSDN steps , but sill same error. We have attached the certificate and using the same issuer ID in the app web.config.

    Verified the IIS setting and still getting the same error when we call the "Clientcontext.ExecuteQuery()" method.

    Same code is working fine in my Local dev environment.

    If anyone have idea about this issue, please let me know.

    Thank you,

    Mylsamy


    Thursday, January 15, 2015 2:39 AM

Answers

All replies