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)

1
vote
1answer
261 views

Required permissions to upload sandbox solution

I want to assign a user the minimum permissions to upload sandbox solution in the site collection, what's the required permission level?
2
votes
1answer
368 views

How to Close SPModalDialog & Refresh page from Code behind in SandBox solution?

I have Submit button in my SPModalPopup. By clicking submit button, after executing some code, I want to close the ModalDialog & Refresh the parent page. How can I do this ? I have tried ...
0
votes
1answer
748 views

How to deploy a Custom Page in a SP 2013 SandBox solution?

Is it possible to deploy a custom WebPage in a SP 2013 SandBox Solution?
0
votes
1answer
99 views

Variable Content Query Webpart in Sandbox Solutions

I'm stuck with the following problem. I have a Sharepoint Sandbox Solutions project. On the main page there's a list "Artists" with URLs that direct to the proper Artist Page. Those artist pages are ...
0
votes
1answer
130 views

SharePoint online solution licensing

We are working on solution which we belive could be useful for organizations using SharePoint. We designed and implemented solution so it can be used in sharepoint online. Since we want to be selling ...
2
votes
1answer
66 views

How to use 14Hive in Sandbox?

How can I use the 14Hive folder in my Visual Studio SandBox Solution ? I want to use the Layout folder of that. And it gives me compile time error for LayoutsPageBase. And I can't access. So is ...
0
votes
2answers
2k views

How to add .aspx page to Module in Sandbox solution?

When I am adding any application page(.aspx) to my Module in the Visual Studio Project of SandBox Solution, it is always adding that page in Layouts(Mapped) folder. And not adding that page in the ...
1
vote
2answers
426 views

Can a sandboxed WebPart access SPWeb.AllProperties

Well, subject says it all. Although MSDN has plenty of info what classes are accessible in a sandboxed solution I just couldn't find the info if I can read or write to SPWeb.AllProperties. Basically ...
0
votes
1answer
121 views

How to find images & javascripts of SandBox solution deployment?

I have deployed SandBox Solution to my SharePoint Server. After deployment When I open the site in browser, it displays the images of the Site but not working of JavaScript file. (I have given the ...
0
votes
1answer
204 views

How to reference/write the file path in Elements.xml for UserControl in Sandbox Solution?

I have 1 solution (which is deploying as SandBox Solution). I have added JavaScript files, Images, Application Page & UserControl in one Module under project folder. I have one Element.xml file ...
0
votes
1answer
85 views

Member Variable / public property null on postback

I have a sandboxed visual web part (created in VS2012) when I initially load my web part and its child controls I set myProperty to a value retrieved from the database. When I fill out the relevant ...
1
vote
1answer
204 views

Sandbox: can I get an html list item to Run in iframe?

I guess the real question is can I get rid of these lines in Response Header: X-Download-Options: noopen and Content-Disposition: attachment; filename=... so I can actually see an HTML ...
1
vote
1answer
235 views

How to DeActivate feature of my site?

How to DeActivate feature of my SharePoint site remotely ? I have created .wsp package file and uploaded SandBox solution to my SharePoint site. But in my elements.xml file it has 1 mistake of ...
1
vote
0answers
215 views

SP2010 Custom action runs sandboxed but not as farm solution

Short version: Which changes need to be made to convert a custom workflow action, developed in VS2010, from a Sandbox to a Farm solution. Assume it is a placeholder with no logic added yet. Long ...
1
vote
1answer
757 views

How to deploy SandBox solution with images on the Server?

How can I deploy SandBox Solution from Visual Studio with images on the Server ? When I trying to deploy it, I am getting the following errors. 1). The Project Item "Images" cannot be deployed ...
2
votes
2answers
5k views

Sandbox Unhandled exception was thrown. Partial Trust app domain:

I'm trying to build my very first SP (2010) Sandbox project (I'm generally new to SP anyway!) but I keep hitting the following "infamous" error when I try and add any of my custom Web Parts to a ...
0
votes
1answer
129 views

Same code in Sandbox solution generates error

I am using following code in a Web Part to read Rss (atom). Same Web Part works in Farm Solution but generates error (don't know what) in a Sandbox solution. WebClient wc = new WebClient(); ...
1
vote
3answers
131 views

Adding members to groups i am not a member of

I have a process which runs in a event receiver, this involves adding users from ad to groups based on the contents of a custom list. The problem occurs when i try to add a user into a group that i ...
2
votes
1answer
263 views

rootFolder.ContentTypeOrder throws unexpected error for sandbox solution

I'm trying to add content types into a library list, in order to make "Visible on New" option ticked. Firstly I enabled contenttypes in the library, then I want to do this: SPFolder rootFolder = ...
1
vote
1answer
638 views

Programmatically add publishing page in sandbox solution?

How do you programmatically add an item to the Pages list from a feature receiver in a sandbox solution? NB: The Microsoft.Publishing.dll assembly is not available within the sandbox, so you ...
1
vote
1answer
113 views

Adding EventRecevier in SandBox Sharepoint2010

This is Sample of my Code SPList list = new SPSite(siteURL).OpenWeb().Lists[listName]; SPEventReceiverDefinitionCollection eventReceivers = list.EventReceivers; SPEventReceiverDefinition ...
2
votes
2answers
1k views

SharePoint 2010 User Code Host service stops

When I try to deploy any SandBox Solution I receive following error: Error occurred in deployment step 'Retract Solution': Timeout occurred while running the SharePoint Sandboxed Code service. ...
3
votes
1answer
215 views

Should this be a sandboxed solution?

My company outsourced the creation of a SharePoint WebPart for connecting to our cloud service. The WebPart connects to our service by using our REST API. When configuring the WebPart you supply ...
1
vote
1answer
449 views

How to access AD users in SharePoint 2010 Sandboxed solution?

I am running with an issue to accessing AD users in Sandbox solution. Can anyone has idea how to do that. I know how to do in normal SharePoint 2010 solution. But I am not able to do in the same ...
0
votes
1answer
59 views

remote deploy sandbox

I am trying to set up TFS build to deploy our solution to test server. The build executes some scripts remotely (from build server) on the test server. Everything works, including commands like ...
2
votes
2answers
539 views

Can the ItemAdding event be used in a Sandbox?

Can the ItemAdding event be used in a Sandbox? I need to perform a task when a Item is a added/adding, it has to be synchronous (item added is async so i cant use that). If i cant use the ...
3
votes
1answer
657 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 + ...
1
vote
2answers
273 views

How to copy one custom list to another custom list (approximately 600 items)

I have one master list from which I wish to query and create a subset of this in a new custom list. The code I have so far works, but it is extremely slow and occasionally hits the hard limit of the ...
3
votes
0answers
13 views

How to upload file in document library in sandbox solution? [duplicate]

Possible Duplicate: Upload file using sandbox solution How to upload file in document library in sandbox solution ? File upload control is not working sandbox in sandbox solution
2
votes
2answers
383 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 ...
2
votes
1answer
306 views

Add content type from sandboxed solution to list definition (farm solution) does not work

I'm using a sandboxed solution from a 3rd party vendor which contains some site columns and a site content type. I want to add this content type to my document library definition in CAML. But when I ...
0
votes
1answer
874 views

How to use treeview in Sharepoint 2010 Sandbox solution?

I have tried using Treeview in my Sanboxsolution webpart but the problem is that in a web page it is not loading properly. And when i click on node it gives me javascript error. For these two errors i ...
2
votes
0answers
318 views

Steps for troubleshooting Sandbox web part “An error occurred while attempting to add the item to the page”

I have a server which is refusing to run any Sandbox web parts with the error "An error occurred while attempting to add the item to the page" Steps already performed :- These web parts run fine on ...
1
vote
2answers
402 views

Write file to response problem

I am having trouble writing a file to the response stream (sandbox solution). The final line of this code block throws a null reference exception. HttpContext.Current.Response.Clear(); ...
1
vote
0answers
92 views

Ajax Call in sandbox Solution

How to make an ajax call in sharepoint sandbox solution. I have created a web part. In that web part I have created a multiple hyperlinks and grid view so when user clicks on link gridview should be ...
1
vote
1answer
133 views

How to fake Manifest.xml for WSP builder solution

I know WSP builder creates manifest at run time and then deletes it but can I fake it somehow to add few safe controls (I know other ways but I want to know if I can do it this way or not)
0
votes
1answer
448 views

How do i add a UserControl to a VisualWebPart (sandboxed)

I have installed Visual Studio power tools so that i can add Visual Web Parts. This all works fine, i can deploy Visual Web Parts etc. I now want to create a UserControl in my solution which i can ...
0
votes
2answers
436 views

Do i have to use sandbox solutions for Sharepoint Online (Office 365)?

I have been asked to create a web template for Sharepoint Online (Office 365). Does this have to be a sandboxed solution? Is there any way around this limitation?
4
votes
1answer
4k 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 ...
1
vote
1answer
455 views

Sandboxed solutions get all sharepoint lists in sitecollection

I am working with sandboxed solutons.(VS2010 C#) I need to retrieve all lists present in the site collection. I am able to get the lists from the site but not from entire sitecollection like subsites ...
3
votes
3answers
2k views

Dynamically registering JavaScript from within a sandbox web part

I am mid-way through development of a corporate intranet that will be hosted in SharePoint Online. For this reason, we are restricted to using sandbox solutions. One of the last "gotchas" that I need ...
0
votes
1answer
702 views

Error while creating Event Receiver

This is Sample of my Code SPList list = new SPSite(siteURL).OpenWeb().Lists[listName]; SPEventReceiverDefinitionCollection eventReceivers = list.EventReceivers; SPEventReceiverDefinition ...
1
vote
4answers
894 views

Sandboxed solution -get SharePoint lists programmatically

I am using the below code for retrieving all sharepoint lists from a site. SPSite site = new SPSite("http://servername:port"); SPWeb web = site.OpenWeb(); SPListCollection SPlists = web.Lists; ...
2
votes
2answers
1k views

Custom Content Query Web Part in a Sandbox Solution

I am looking to create an "image slider" web part for my SharePoint 2010 site home page to display a nice glossy roll-up of our recent news articles. There are literally hundreds of jQuery plugins ...
1
vote
2answers
811 views

(Sandbox solution) Ensure my javascript file is loaded after core.js

Using a CustomAction in the location of a scriptlink, I'm inserting a javascript code, however I need this code to run after core.js runs. Does anyone know how I can achieve this? My CustomAction ...
8
votes
3answers
337 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?
0
votes
2answers
393 views

How to make SharePoint Online to update files inside modules

We have deployed solution to SharePoint Online with following elements.xml file: <?xml version="1.0" encoding="utf-8"?> <Elements xmlns="http://schemas.microsoft.com/sharepoint/"> ...
0
votes
1answer
70 views

Sandboxed solution - Pass datafrom client side(javascript) to server side

Can anyone suggest me with different ways to passing data from client side to server side?
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" ...
0
votes
1answer
289 views

SandBox Visual Web Part with Power Tools issue with ExchangeService

I am trying to make Sandbox Visual Web Part using Power Tools. It has given me below error : Web Part Error: Unhandled exception was thrown by the sandboxed code wrapper's Execute method in the ...