Questions tagged [sandbox-solution]

A Microsoft SharePoint Server 2010 solution is a deployable, reusable package that can contain features, site definitions, and other functionality. Solutions can be enabled or disabled individually. You can deploy a solution directly onto your SharePoint Server farm, or you can deploy the solution into a sandbox. A sandbox is a restricted execution environment that enables programs to access only certain resources, and that keeps problems that occur in the sandbox from affecting the rest of the server environment. taken from Microsoft Tech-Net site.

35 questions
4
votes
2 answers

SharePoint 2010 Sandbox Solution Timeout

Is there a way to adjust the timeout value for a SharePoint 2010 sandbox solution? I think it defaults to 30 seconds. I have a web part that occasionally runs a little longer than that. I really would prefer not to fall back to a farm solution if…
Scott Price
  • 403
  • 5
  • 11
3
votes
3 answers

When is Sandboxed Solutions preferred in Sharepoint?

I have been referring to many articles that show comparison between SharePoint Sandboxed Solutions and Farm Solutions plus demos of Visual Web Part (Farm based) and Web Part (Sandboxed Solutions) under Visual Studio 2010 and it seems like Farm Based…
xorpower
  • 17,975
  • 51
  • 129
  • 180
3
votes
1 answer

How to create a webpart page with included webpart in sandboxed solution

I know its possible to create a wiki page in a sandbox solution with this: SPUtility.CreateNewWikiPage(list, "{mysiteurl}/CodeGeneratedPage.aspx"); But how can I (if possible) create a webpart page with included webpart in my document library?…
Marc
  • 6,749
  • 9
  • 47
  • 78
2
votes
1 answer

Having codebehind for Custom .aspx page in sandbox solution

I am having working with sandbox solution. i have one .aspx page in my solution and i have placed one button tag in that page, i need to write server side code for that button. But it is showing "The event handler 'OnClick' is not allowed in this…
John
  • 81
  • 1
  • 1
  • 10
2
votes
4 answers

Sandbox solutions seem to be too severely crippled

I am learning SharePoint and the different kind of solutions you can deploy. From the training I am watching it seems like you should try your best to use a Sandbox Solution when ever possible. This is because Farm Solutions can mess things up too…
Vaccano
  • 78,325
  • 149
  • 468
  • 850
2
votes
2 answers

How a Sharepoint Sandbox Solution is saved

I have been watching some Pluralsight training videos on SharePoint development. One of the things I see is that you can make a sandbox solution or a Farm Solution. From the training video, it says that the sandbox solution does not change the file…
Vaccano
  • 78,325
  • 149
  • 468
  • 850
2
votes
1 answer

How to run a library in a "sandbox" mode using Java?

I'm using some third party source code, which is meant to be run with a GUI, but I'm integrating it without using the GUI, and I've noticed severe memory leaks from the third party code which I am using. So I'm wondering, would it be possible to…
Arturas M
  • 4,120
  • 18
  • 50
  • 80
2
votes
3 answers

jvm sandbox for java application

Is it possible to implement some kind of JVM sandbox for running application ? I'd like to restrict access of this application for example to files IO, network, etc. Is any way to control these resources access for running app inside of JVM in this…
alexanoid
  • 24,051
  • 54
  • 210
  • 410
2
votes
1 answer

The target URL solution deployed to on SharePoint Online

I want to deploy a solution on SharePoint Online. The SharePoint Online System which I will deploy to contains production environment subsites and testing environment subsites. I want to know how can I choose the target subsites for deployment when…
Frank Code
  • 101
  • 12
2
votes
1 answer

Error validating exception when using System.Reflection

We're developing a SharePoint webpart as a sandboxed solution in Visual Studio 2013 for SharePoint Online. We use an external dll library iTextSharp for reading and writing to PDF. We are having a problem when activating our solution. Our error…
2
votes
2 answers

Change property in webpart by code in sandbox solution

This is the way I save a property of my webpart in a farm solution: SPContext.Current.Web.AllowUnsafeUpdates = true; SPFile file = SPContext.Current.File; SPLimitedWebPartManager mgr = file.GetLimitedWebPartManager(PersonalizationScope.Shared); for…
Marc
  • 6,749
  • 9
  • 47
  • 78
1
vote
1 answer

Attach file to list in Sandbox Webpart

I am trying to create a custom control for updating a List on a Sharepoint site that only allows Sandbox Solutions to be added. I've read a few threads on uploading attachments, but they all seem to involve doing it from the server machine (Using a…
Wesley
  • 5,381
  • 9
  • 42
  • 65
1
vote
2 answers

FeatureActivated event receiver not called for sandboxed feature

I have a sandbox feature, and I've added two event receivers - FeatureActivated and FeatureInstalled. The FeatureInstalled event handler executes, if I attach to the SPUCWorkerProcess and the SPUCHostProcess I can debug the code. However, my…
kjv
  • 11,047
  • 34
  • 101
  • 140
1
vote
0 answers

Is it possible to use WSPBuilder to create a sandboxed solution?

i am trying to build a sandboxed sharepoint solution using WSPBuilder, but gets an exception when activating the feature, that the Resources element in manifest.xml is invalid. The Resources element lists the files contained in a module which is a…
Øyvind Skaar
  • 1,842
  • 14
  • 22
1
vote
1 answer

how to create a list template in SharePoint online using VS 2013

I am going to create some declarative items in SPO using VS. I know how to create it through UI by I want to create programmatically. As I did some research, there are 3 ways. First is through SP hosted App(add-in) then give manage permission on…
1
2 3