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

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have successfully added a provider hosted app to the app catalog.

However, when I go to the main site, then go to the "gear" icon, and select "Add an app", it gets stuck at "Loading" forever.

If I view javascript errors, In IE10 see:

SCRIPT5007: Unable to get property 'className' of undefined or null reference 
ScriptResource.axd, line 5 character 59249

And in FireFox I see:

Error: TypeError: b is null
Source File:

Line: 5

I retried the request, then grabbed the most recent logs via SharePoint management console with the command:

get-splogevent -starttime (get-date).addminutes(-1) | fl message > error.txt

Examining the error logs, I can't find any smoking gun.

How can I fix this so that I can add an appmodel app to a publishing site?

share|improve this question
up vote 5 down vote accepted

Turns out there is a bug in the SharePoint master designer in SharePoint 2013 RTM.


Basically, you have to ensure that your master page contains specific items.

share|improve this answer
Thanks Nathan. Just removing Visible=False from DeltaPlaceHolderLeftNavBar fixed my issue. MS should have a fix for this as its been existing since 2012 – Colbs Jul 15 '14 at 14:58

enter image description here

Specifically, if you are using Sharepoint Designer 2013, your code should look like this (notice Visible="false" has been removed)

share|improve this answer

add the below lines in the master page, it works for me:

 <!--SPM:<SharePoint:AjaxDelta id="DeltaPlaceHolderLeftNavBar" BlockElement="true" runat="server">-->
 <!--SPM:<asp:ContentPlaceHolder id="PlaceHolderLeftNavBar" runat="server">-->
<!--SPM:<SharePoint:AjaxDelta id="DeltaPlaceHolderPageTitleInTitleArea" runat="server">-->
<!--SPM:<asp:ContentPlaceHolder id="PlaceHolderPageTitleInTitleArea" runat="server">-->
share|improve this answer

Your Answer


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.