I created provider hosted app using sharepoint add-in template from visual studio 2017, I have followed all process required for provider hosted app like creating certificate and generating client id and issuer ids.

My local development machine is on different domain as compared to sharepoint server domain.

I do F5 to run the default solution, but it throw 401 unauthorized error on ctx.ExecuteQuery();line.

If i create the solution on server then it works.

Thanks, any help will be appreciated.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.