I'm developing an auto-hosted asp.net app for Sharepoint 2013. I have to use the SPAppWebUrl token value for my requests. So I tried this :
-
AppManifest.xml :
<StartPage>~remoteAppUrl/Pages/Index.aspx?{StandardTokens}</StartPage>
-
javascript :
var appweburl = decodeURIComponent(getQueryStringParameter("SPAppWebUrl"));
-
C# code-behind :
Application["SPAppWebUrl"] = Request.QueryString["SPAppWebUrl"];
Nothing worked. Sharepoint sends values for SPHostUrl, SPLanguage, SPClientTag and SPProductNumber. I read topics about tokens and noted this :
If there is no app web, the portion &SPAppWebUrl={AppWebUrl} is not present.
But I dont understand how I could not have an app web... If anybody can help please. Thanks.