RegisterSOD is Undefined - JavaScript Exception from SharePoint Hosted App in SharePoint 2013


Sathish Nadarajan
SharePoint MVP
Published On :   28 Mar 2015
Visit Count
Today :  3    Total :   8438
Plan, Migrate, Secure, Report
SharePoint & Office 365 Tool. Simple & Easy to Use. 15-Day Trial!

SharePoint Office 365 Tool
Simple & Powerful Tool for Migration, Security & Reporting. Free Trial


I was creating a blank new environment for one of the demo about the SharePoint hosted Applications. At that time, I configured all the service applications properly and created the App. After deploying the App, my screen loads, but not properly. When I traced the Javascript exceptions, I found an exception like “RegisterSOD is undefined”. Basically this method should be present on the JQuery itself. Probably I may wrong at this point. But surprisingly what solved my issue is creating a new SiteCollection at the Root level. i.e., I created a site collection like

http://sathishserver.ss.loc:1000/sites/AppDemo and deployed this app. I got the screen as below.

clip_image002

Then I created a Root Site like – http://sathishserver.ss.loc:1000/ and then refreshes the other site collection. It start working like anything. Though it looks strange, this worked out for me.

Happy Coding

Sathish Nadarajan.

SharePoint Usage Reports
Usage reports, collaboration and audit for SharePoint.
Categories

Migratiin Tools for SharePoint