Friday, June 7, 2019

Publish provider hosted app

The following are steps to publish a provider hosted app in brief:


  1.  Register the app in the site to which it will be added using AppRegNew.aspx
  2. From Visual Studio (VS) generate the app manifest file for the SharePoint Addin Project (not the Remote Web project) by publishing the app to a package file.
  3.  Publish the Remote Web Project to the IIS server
  4.  Add the app to the app catalouge
  5. Add the app to the site collection
We can also view apps using AppPrincipals.aspx and grant them permissions using AppInv.aspx

c# httpclient The remote certificate is invalid according to the validation procedure: RemoteCertificateNameMismatch

 If we get this error while trying to get http reponse using HttpClient object, it could mean that certificate validation fails for the remo...