A sandbox is a restricted execution environment that enables programs to access only certain resources in a controlled way

learn more… | top users | synonyms (1)

17
votes
3answers
1k views

How to check if code is running as sandboxed solution?

Is it possible to check, from within solution, if it was deployed as sandboxed or not, e.g. something like this: if(this.IamSandboxedSolution) // do something else // do something else
12
votes
2answers
2k views

Cannot add custom web part to page using the JS OM

I'm trying to add a custom web part (that is one I have written myself) using the new Javascipt OM available with SharePoint 2010. My solution is also running within the Sandbox. I have it working ...
9
votes
3answers
3k views

How to localize webpart title, description, group, quickadd group in Sandbox solution

I've seen other similar questions (like this one), checked Microsoft documentation (like all the ones stemming from and related to the page Localization of Sandboxed Solutions in SharePoint 2010), ...
8
votes
3answers
375 views

How to programatically determine if you are running in on premise Sandbox or SharePoint Online

How could you programatically determine if code is running in an on-premise Sandbox model or SharePoint Online sandbox?
7
votes
5answers
2k views

Add jQuery in Sandbox mode (Office 365)

What would be the best approach in using/including jQuery in Office 365? Should I just use google CDN or is it possible to deploy the jQuery file to the server? Is there any good articles/resources ...
7
votes
1answer
10k views

Can't Activate Solution from Site Settings in SharePoint foundation 2010

I'm currently tasked with developing a branding solution for SharePoint Foundation sites. I've created a WSP file which can be deployed through my local machine through Visual Studios, but when I ...
7
votes
3answers
396 views

SharePoint 2010 Sandboxed solutions performance

Does code that is deployed through a Sandboxed solution perform just a well as code deployed through a Farm solution? Does the overhead that comes with interprocess communication (since Sandboxed ...
7
votes
1answer
449 views

Compressing Files in a Document Library with Server-side Code

Anyone know of a way, that within the context of server-side code (like in the callback of a WebPart) to compress a set of given files in a document library, placing the resulting compressed file back ...
6
votes
5answers
2k views

How to customize Feature image for a sandbox solution?

I'd like to add my own icon graphic to a feature. I found out that the ImageUrl attribute in the feature.xml definition points to the /_layouts/IMAGES folder which is out of scope for sandboxed ...
6
votes
1answer
2k views

Send email via code in Office365

I am developing a custom web part in an Office 365 environment. I am trying to send email to a user during the execution of the code in the web part. I have tried two alternatives: ...
6
votes
2answers
1k views

Object cache in sandbox solutions

I am building a SharePoint sandbox solution which consists of multiple web parts. I want to be able to somehow cache POCO objects (Plain Old CLR Objects) in such a way that the cache is persisted ...
6
votes
4answers
6k views

Sandboxed web part failing with “No available sandboxed code execution server could be found”

I'm deploying a web part as a component of a sandboxed solution from Visual Studio 2010 to Windows 7 SharePoint Foundation Server 2010 on my development box, and I receive the following error when ...
6
votes
1answer
833 views

Recommended Visual Studio solution design for new SharePoint 2010 intranet

I'm currently working on a large SharePoint 2010 published intranet development project. The initial months of planning have been completed and we're now gearing up to commence the actual dev/build. ...
6
votes
3answers
825 views

How to create a sandboxed workflow action within Microsoft SharePoint Online 365

I have followed the steps on http://msdn.microsoft.com/en-us/library/ff798499.aspx in order to create a custom sandboxed workflow action, and have deployed this into a site workflow in Microsoft ...
6
votes
3answers
1k views

How do I find out what's wrong with my sandboxed solution in SharePoint Online?

I have created a custom web part which presents a form to create a SharePoint site below the current site, while performing some ancillary actions like updating a list of subsites on the front page to ...
6
votes
2answers
92 views

Install sandbox package from app

I have sandbox solution for SharePoint Online (wsp package without dll) and I want install this package from app (for simplest installation). Is it possible?
5
votes
2answers
2k views

Sandbox Webpart Web Requests: System.Security.SecurityException

I need a custom web part that aggregates list data across web applications. I would like to keep it sandboxed if at all possible. I first tried to use the out of the box SharePoint web services ...
5
votes
3answers
4k views

code behind aspx pages in sharepoint sandbox solution

I have a custom aspx page in sharepoint sandboxed solution with the content as shown below? <%@ Page Language="C#" MasterPageFile="~masterurl/default.master" ...
5
votes
1answer
244 views

How do I localize page layouts and masterpages in a sandboxed solution?

In farm solutions you can use resource files inside aspx-pages by deploying resx-files to the hive. MSDN have some documentation but there's no example for page layouts, just managed code which is ...
5
votes
1answer
114 views

SharePoint library, targeting both sandboxed and farm solutions?

I'm planning to build a shared librarie toolbox for my customer. The idea is to factorize reusable code in a single utility framework. Some of the classes can run on Sandboxed solution, other ...
4
votes
2answers
880 views

SharePoint 2010 Sandbox Solution - Cookies support

In SharePoint 2010 Sandbox solution, whether cookie is supported? When I'm trying to set cookie by HttpCookie myCookie = new HttpCookie("Test","Hello"); ...
4
votes
3answers
3k views

How to create Visual WebPart in sandbox solution (Office 365)?

I am using SharePoint online(Office 365). for office 365 it is necessary to create sandbox solution but in sandbox solution it is not possible to create visual web part. is there any way to create ...
4
votes
1answer
5k views

Programmatically find lists by template ID

I am looking for an efficient way to programmatically find all SharePoint lists with a given template / type in the current site collection from within a sandbox solution. NB: I'm obviously aware ...
4
votes
1answer
326 views

Use AjaxControlToolKit in Sharepoint Online

I use following link for reference : http://social.technet.microsoft.com/Forums/en-US/sharepoint2010general/thread/c995bcf6-b8c7-46de-af27-f54bc8d6e182#2b0f9864-fb6f-4ad2-aef4-1e51d41dfb60 But From ...
4
votes
1answer
141 views

Can WSPBuilder be used with Sandbox Solutions?

Does anyone know if you can use WSPBuilder to create Sandbox Solutions for SharePoint 2010?
4
votes
1answer
230 views

Full-trusted proxy for SP2013 sandbox solution

In my sandboxed solution I have the following code that activates a proxy: public override void FeatureActivated(SPFeatureReceiverProperties properties) { var type = typeof ...
4
votes
2answers
756 views

Sandbox Solution: How to use resource files in master page

When i create a sandbox solution, and i want to use resources in my code, i use sattelite assemblies. But in my masterpage it seems not to work, i get following error: Parser Error Message: The ...
4
votes
1answer
534 views

Use Visual Studio 2010 To Create SandBoxed Site with Content

I have a site that was built with the UI: It has a lot of custom .aspx pages with webparts and there are custom site columns, content types, and even a document library with several support files. My ...
4
votes
4answers
964 views

Error while adding Sandbox WebPart

I created a simple "Hello World" sandbox webpart in VS.NET 2010. After uploading the .wsp file to SharePoint site, I activated the webpart. But while trying to add it to a page, I was getting this ...
4
votes
1answer
2k views

Deploy a web part to a page during feature activation within a Sandbox Solution

I've been hitting my head against a wall on this one for the last couple of days. I have a pretty simple requirement but I cant see how it can be achieved within a Sandboxed solution. I'm depressed ...
3
votes
3answers
693 views

Sandboxed Solution - SPWeb Property Bag

I'm trying to create an SP2010 Sandboxed solution which involves a site collection administrator storing a piece of information in the Site collection root web property bag. I can't think of a way I ...
3
votes
2answers
1k views

Unable to delete List during solution deactivate

I have two list that I need to delete when a solution is deactivated and removed. But my code doesn't seems to be working. I am trying to delete and remove the quicklinks to the lists in ...
3
votes
3answers
2k views

Sandbox Solutions, resetting the quota

I'm looking into the possibility of developing sandbox solutions (mainly web parts) for our SharePoint 2010 internet site. One thing that I keep reading is that if the quota is exceeded, then all ...
3
votes
3answers
2k views

Can not update Navigation programatically

I have following code var subWeb = newWeb.Webs.Add(subsite.Url, subsite.Title, subsite.Title, 1033, PublishTemplate, false, false); subWeb.AllowUnsafeUpdates = true; subWeb.Update(); PublishingWeb ...
3
votes
1answer
3k views

Is it possible to get detailed error messages in SharePoint Online?

When doing any sort of development/testing work against SharePoint Online, there are bound to be some errors. Some errors manifest in the form of exceptions, which can be logged to a special-purpose ...
3
votes
1answer
392 views

Does Create Content Type need to be a farm solution?

I've found a couple of examples of creating a content type using visual studio. http://stevemannspath.blogspot.com/2010/11/sharepoint-2010-leveraging-visual.html ...
3
votes
2answers
2k views

Page.ClientScript.RegisterClientScriptInclude in Sandbox?

I'm trying to use jQuery in a Sandboxed Visual WebPart (2010): protected void Page_Load(object sender, EventArgs e) { string jQuerySrc = Page.ClientScript.GetWebResourceUrl(this.GetType(), ...
3
votes
2answers
389 views

Sandbox solution deploys , leaves xsl file in a checked out state

I have a sandbox solution that deploys an xsl file to the styles library. The solution is scoped to the web and what happens is when the solution is deployed, the xsl file is stilled checked. Now I ...
3
votes
1answer
1k views

~site / ~siteCollection token replacement with sandboxed solutions

It seems you cannot use the ~site or ~siteCollection tokens in an Element.xml when you deploy as a Sandboxed Solution. Has anyone ever seen this behaviour? Code snippet: ...
3
votes
3answers
986 views

Is it possible to create a Multi-lingual List Definition in a SandBox

I have a sandbox solution that for the some of it I have german translations for, like the feature name and description. However to make this a proper multi-lingual solution I need to do the same for ...
3
votes
3answers
503 views

“Service too busy” exception occurrs when trying to programmatically activate a sandbox feature with an attached feature receiver

The title says it all... I am trying to programmatically activate some sandbox features (from within a feature reciver that is also part of the sandbox solution). And whilst the features without ...
3
votes
1answer
428 views

Creating a custom Filter Webpart in SandBox? How-To?

Since a little while now I've been trying to create a custom filter webpart in Sandbox. So far, it seems that all the usual ways to create a custom filter webpart programatically ina farm solution are ...
3
votes
2answers
2k views

How do I deploy custom list edit forms in the sandbox?

I'm creating a List Definition for use on 2007, 2010 (Sandboxed), and 2010 (unrestricted) that will need custom new and edit forms; unfortunately the Sandbox specifically excludes custom application ...
3
votes
1answer
747 views

Install-SPUserSolution: Sandboxed code execution request failed

When executing Install-SPUserSolution powershell command the following error is shown: Install-SPUserSolution : Sandboxed code execution request failed. At line:1 char:23 + ...
3
votes
2answers
409 views

Sandboxed code execution request failed

I am able to deploy other Sandbox Solution from Visual Studio 2010 but in one solution I am getting below error: Error occurred in deployment step 'Add Solution': Sandboxed code execution request ...
3
votes
1answer
996 views

How do you clear the list schema cache for a re-deploy without rebooting the SharePoint server(s)?

In our development environments we need to re-deploy our codebase on a regular basis. We go through a deployment process where we do the following steps (all through PowerShell): Delete our old ...
3
votes
1answer
486 views

Sandbox User Code Service and low performance

I'm looking into a case where all sandboxed solutions runs terrible, not only slow, but they use abnormally a lot of resource points too. Its not a large farm, 3 server + sql. All running on HyperV. ...
3
votes
2answers
688 views

Add image to Ribbon Button in Sandbox

I've created a simple SharePoint ribbon tab with a button on it; the button XML looks like this: <Button Id="Ribbon.MyTab.MainGroup.HelloButton" ...
3
votes
1answer
754 views

Sandbox Web Part without Site Collection Administrator permissions?

Is there a way to get a Sandboxed Web Part deployed without Site Collection Administrator permissions? Here is the situation: I have Full Control permissions of the Site Collection's Root Web, ...
3
votes
1answer
926 views

Can site columns be deployed in sandboxed solutions?

I have created a package in Visual Studio 2010 for SharePoint 2010 which contains a single feature, called "SiteColumns", which link to a single elements file defining a single site column. I have ...