1

I have a SharePoint 2013 development environment. The Microsoft.SharePoint.dll assembly does not contain LimitedWebPartManager. I want to use a sandbox solution to provision a page and the web parts on it.

I'm not going insane: the LimitedWebPartManager class does not exist, and SPPage and the other classes don't have GetLimitedWebPartManager methods. I've checked with ILSpy/Reflector, the methods and classes are simply not there.

What gives, and what can I do instead?

2

The Server Side LimitedWebPartManager class is not available in Sandbox Solutions (both 2010 and 2013). However there is a SP.WebParts.LimitedWebPartManager class in the JavaScript Client Object Model which you can use in your Sandbox Solution.

See this link for examples: http://msdn.microsoft.com/en-us/library/hh185010(v=office.14).aspx

Hope this helps.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.