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


Sathish Nadarajan
SharePoint MVP
Published On :   28 Mar 2015
Visit Count
Today :  2    Total :   7588



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.

Categories