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?