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

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 made search on google a lot and I changed the value of AppPrincipal element in manifist.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 the token is empty? thanks for your help.

share|improve this question

1 Answer

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

 
discard

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.