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

Sathish Nadarajan
 
Solution Architect
March 28, 2015
 
Rate this article
 
Views
14004

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.

Author Info

Sathish Nadarajan
 
Solution Architect
 
Rate this article
 
Sathish is a Microsoft MVP for SharePoint (Office Servers and Services) having 15+ years of experience in Microsoft Technologies. He holds a Masters Degree in Computer Aided Design and Business ...read more
 

Leave a comment