Q&A

Q. I want to convert a farm solution to a sandboxed solution. How can I ensure that my solution doesn’t use any objects or functions restricted in the sandboxed solution?

A. Visual Studio IntelliSense does show you a trimmed list of classes and functions when developing a sandboxed solution. However, because in your case the code is already written, although IntelliSense will trim the restricted functions and objects, your solution will still compile successfully even when you set it to be deployed as a sandboxed solution. To ensure that you are not using any restricted functionality of the object model, try compiling your code against the version of the Microsoft.SharePoint.dll assembly present in the 14UserCodeassemblies folder. In this case you will get compilation errors if you try to use any restricted subset of the object model.

Q. My sandboxed solution did not exceed the resource usage limit for the site collection. It was another solution that caused the problem. But still my solution is blocked, why is this so?

A. Even if one sandboxed solution consumes all the resource points for a site collection, all the sandboxed solutions in your site collection will be blocked for a day. Thus even though your sandboxed solution may not have caused any issue, it still gets blocked. In such a scenario, you can request the farm administrator to reset the daily resource usage for your site collection and block the rogue solution from execution.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset