SharePoint Client Object Model: Step One

Posted by PeterBrunone on ASP.net Weblogs See other posts from ASP.net Weblogs or by PeterBrunone
Published on Tue, 10 Apr 2012 19:12:00 GMT Indexed on 2012/04/10 23:30 UTC
Read the original article Hit count: 318

I almost didn't make it out alive.  I followed the instructions in every piece of sample code and every forum post by someone who had no idea why their client OM code wasn't working, and my code still wouldn't get past the page load.  I kept getting "'Type' is undefined" errors when sp.core.js tried to register the SP namespace.

As it turns out, you need the help of the default master page (or one like it) to get the object model loaded.  Once I told my sample page to use the default master and modified everything accordingly, it hooked up and ran just fine.

Now I can finally get some work done.

© ASP.net Weblogs or respective owner

Related posts about General Software Developm

Related posts about sharepoint