SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have created a simple autohosted app, I chose a Office 365 Team Site when I created it in VS 2012.

However it generates

The parameter 'token' cannot be a null or empty string

when I choose deploy in VS.

I have searched on google a lot and I changed the value of AppPrincipal element in manifest.xml from AutoDeployedWebApplication to Internal.

Now when I deploy it, I am getting invalid url ~remoteAppUrl/Pages/Default.aspx instead. What is the problem? And why is the token empty?

share|improve this question

Try downloading the latest version of the Microsoft Office Developer Tools for Visual Studio 2012 here and re-create your app project using them.

This error was due to a misconfiguration of the default autohosted app template in an earlier release of the tools (I actually believe it was resolved in Preview 2, but I just confirmed it works with the latest production release).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.