Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 25064

Can't get SPAppWebUrl - SP 2013

$
0
0

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.


Viewing all articles
Browse latest Browse all 25064

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>