Thursday, January 31, 2019

SharePoint Provider Hosted Add-ins 401 unauthorized error

We were getting an error 'Unauthorized Access' without any apparent reason. This error was resolved by following steps:


  1. Uninstall the app from SharePoint host website and re-install it again.

  1. Manually run SharePoint Central Admin timer job named 'Refresh Trusted Security Token Services Metadata feed'

No comments:

Regex Email validation in c# dot net core

 Use this regex /^_?[a-zA-Z0-9]([a-zA-Z0-9]*[._+-])*[a-zA-Z0-9_]+@(?!-)[A-Za-z0-9-]{1,63}(?<!-)(\.(?!-)[A-Za-z0-9-]{1,63}(?<!-))*\.[A-...