The parameter 'token' cannot be a null or empty string - Provider Hosted App SharePoint 2013


Today while my research on SharePoint Provider hosted app with Azure, after deployment I was greeted with "The parameter 'token' cannot be a null or empty string ".
I was almost crazy behind finding the cause. However finally I found some points which leads me to resolve this error.

  • The ClientID in your AppManifest.xml and in your Web.Config should be same.
  • In AppManifest.xml file domain reference to Azure should be HTTPS rather than HTTP.
  • Should have proper permission on web,list,site collection according to your app.
    Happy coding!


    1. Hi Firstly thanks any idea how do we solve this error i am facing the same problem when i am connecting to office 365 using provider hosted apps please suggest.


    Post a Comment

    Popular posts from this blog

    SharePoint 2013 Workflow gets canceled automatically

    All about Microsoft Search and SharePoint Online Search

    Configure notes as attachments for entity forms - Missing "Attach a File" option