A sandbox is a restricted execution environment that enables programs to access only certain resources in a controlled way
1
vote
3answers
1k views
How do I deploy custom web part to Sharepoint Online Site Collection?
After uploading the wsp to the site collection using the browser and activating it, everything seems to work fine and i see all the page layouts, masterpage, content types, lists and webparts. BUT, ...
-1
votes
0answers
16 views
SharePoint 2010 sandbox webpart error: Unhandled exception was thrown by the sandboxed code wrapper's
I have builded a webpart for my sharepoint 2010 online portal. In this webpart I try to get some data by a webservice on another website. I press F5 in VS to test it, but when I test the webpart I get ...
1
vote
1answer
22 views
Can I access in a SharePoint 2010 Online webpart, some webservice and do some CRUD?
I am using SharePoint Online. It is only possible to build sandbox solutions webparts. Is it possible in a sandbox solution webpart to access a webservice somewhere on the internet? I would like to do ...
0
votes
0answers
18 views
Handle AJAX call in SharePoint sandbox
I'm developing a solution for Sharepoint 2010 using ASTreeView. This control handles also AJAX calls for node loading. To load children of a parent, a
<ul><li>...</ul>
needs to ...
0
votes
1answer
430 views
Sandboxed code execution request failed in Web Part with no Exception thrown
So I'm working on a web part for a client of mine targeting SharePoint Online, and I've run into a brick wall that I've been banging my head against for the last few hours. The web part executes a ...
1
vote
4answers
384 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;
...
0
votes
1answer
26 views
Programatically adding webparts to a page in sandbox
I've successfully implemented code to add web parts to web part zones in code using WebPartManager's in other projects.
Now that I'm working in a sandbox solution, VS can't seem to recognise ...
0
votes
0answers
15 views
new to WCF: when will i need to write web services in SP2010 SBS?
what are some drawbacks with sandbox solutions where one might need to write custom web services as a work around?
appreciate any advice. there is a lot out there on getting started but little on ...
1
vote
1answer
310 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 ...
2
votes
1answer
36 views
Reading from text files within a sandboxed solution
So I have a set of plain text files included in some directories within sandboxed solution. I want to use these text files to programmatically insert data to SharePoint Online using an event receiver.
...
4
votes
3answers
768 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 ...
1
vote
1answer
66 views
Increase SharePoint Execution Timeout in SharePoint Online (Office 365)
I have office 365 site and web part added on this site. this web part create a document library. This is a sandbox solution
I want to create 2000 document library using this code snippet as follow:
...
1
vote
1answer
39 views
Programmatically removing web parts in a sandbox solution? (Sharepoint 2010)
I had a problem with web parts being duplicated whenever their feature was reactivated, so I made a question about that.
It was answered (and correctly so, I think) - I have to programmatically ...
1
vote
0answers
38 views
Setting the value of a sandbox web part's custom properties in .webpart file
I've created a new web part in a sandbox solution. This web part has a custom string property called 'PetName'.
I'd expect to be able to set the initial value of this property in the .webpart file. ...
0
votes
1answer
74 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();
...
5
votes
1answer
4k 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 ...
0
votes
0answers
23 views
Sandbox Solution is not working while the proxy being updated
We are facing an issue with Sandbox Solution which handles the “ItemAdded” event receiver. It works like a charm however does not work when the below events are reported in the ULS.
04/03/2013 ...
0
votes
0answers
9 views
sandbox solution priviliges issue
I have a sandbox solution for SharePoint 2013. (because it has to work in Office365) I have an eventreceiver that adds an item to a list. I don't want users to manually change that list, so I don't ...
1
vote
1answer
29 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?
1
vote
1answer
68 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
255 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 ...
0
votes
1answer
288 views
SPMetal Person column generation
I'm using SPMetal to generate a class for my lists to use in a Sandbox-solution (with Sandbox Visual WebParts).
However, when I generate the classes for a list column of type "Person or Group" with ...
0
votes
1answer
134 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
52 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
55 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
41 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
0answers
35 views
How can I use the controltemplates of 14Hive in UserControl of SandBox solution?
How can I use the following control in my SandBox solution of Visual WebPart(Sandboxed),
"<%@ Register TagPrefix="wssuc" TagName="InputFormSection" Src="/_controltemplates/InputFormSection.ascx" ...
0
votes
1answer
145 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 ...
0
votes
0answers
78 views
How to open .aspx page using JavaScript in SandBox Solution?
I have the following Folder structure for SandBox Solution.
MyProject -> TestModule -> Pages -> Page1.aspx
When I try to open the page using JavaScript file like,
var options = {
url: ...
1
vote
2answers
105 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
45 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
2answers
1k views
Find out Site Template ID without powershell
Is it possible to find out the ID of a custom site template without using powershell?
Using Sharepoint 2010 project in office 365 and I do not have access to the server.
Found a blog post claimining ...
0
votes
1answer
94 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
33 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
83 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
64 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
69 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 ...
0
votes
0answers
15 views
Languages SharePoint Sandbox Solutions
I am having a problem with multiple languages in sandbox solutions.
After a lot of reachers I came to the conclusion that there's no other
option than programatically add languages to custom lists, ...
1
vote
1answer
107 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
628 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 ...
3
votes
2answers
505 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 ...
0
votes
2answers
2k views
ItemAdding event not firing when submitting InfoPath form to form library
I created an event receiver in Visual Studio to handle three events in a form library: ItemAdding, ItemUpdating, and ItemDeleting.
ItemUpdating and ItemDeleting work as expected when debugging, but ...
2
votes
2answers
275 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. ...
1
vote
1answer
110 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
228 views
List item field values incorrect in AllItems view, but correct in detail view
I've created a custom content type and a list definition and list instance based on it. In a web part, I add an SPListItem to the list, set its field values, and then call item.Update().
However, ...
1
vote
1answer
91 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
3answers
60 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 ...
1
vote
1answer
56 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 ...
0
votes
1answer
244 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 ...
3
votes
2answers
446 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 ...





