Saturday, June 8, 2013

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

Hi,

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 comment:

    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.

      ReplyDelete