This project is read-only.

OneDriveCustomizer - error in CreateSharePointContext

Jul 15, 2014 at 4:44 PM
Hi All,

I am having a problem in the sample code for the OneDriveCustomizer app.

The following line (in the CreateSharePointContext method doesn't get the spAppWebUrlString.
// SPAppWebUrl
            string spAppWebUrlString = TokenHelper.EnsureTrailingSlash(httpRequest.QueryString[SharePointContext.SPAppWebUrlKey]);
If I debug the code and manually set it then the rest of the code runs through as expected and changes the theme to orange.

Has anyone else come across this issue or know how to fix it?
Jul 15, 2014 at 4:57 PM
Edited Jul 15, 2014 at 5:06 PM
I take it back.... this isn't my issue.

Apparently a provider hosted app doesn't have an AppWeb therefore this will just be null.

I am trying to locate where my first run error is coming from.