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!

    Comments

    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

    Post a Comment

    Popular posts from this blog

    Search Query by ContentType name issue

    SharePoint 2013 List CRUD operation using Angular and REST API

    Search Result Webpart,Filter result If QueryString is present in URL