I have developed the Provider hosted app. Using two way.
I have create Self Signed certificate and created app using that. When I run the app from Visual Studio it runs perfectly. After that I publish my app's Web Application to my local IIS. And it works from there also when I hit F5 from Visual Studio.
But, When I add my .app file to AppCatalog of my site. And install my app to site and try to run that app, at that time it gives me error
System.Net.WebException: The remote server returned an error: (401) Unauthorized
- I have also create app without using self signed certificate and
created the ClientID and ClientSecret from my site and created app
using that. And then I publish my app's Web Application to IIS and
try to run that app It gives me error of
The parameter 'token' cannot be a null or empty string
Is there any other way to create Client Context object for my App?
How to solve this Issues..?