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)

3
votes
0answers
100 views

Replicate AllItems.aspx inline edit in custom page layout

I am attempting to replicate the inline editing features found in the allitems.aspx page in a custom page layout. For whatever reason the "new" and "edit" list options don't seem to be showing up. ...
3
votes
1answer
248 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 ...
3
votes
0answers
14 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
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 ...
2
votes
3answers
2k views

Sandbox Content Type and Resource (RESX) File

I have a simple Sandbox Solution with a Content Type in it. The Content Type simply inherits from the Item content type. It adds no additional fields to it. I've added a Feature Resource file to my ...
2
votes
2answers
1k views

How to send a document from a document library directly as attachment?

Is there a way to change the behavior of the "send to"-drop-down in a DL from "E-Mail a link" to "E-Mail as attachment"?
2
votes
1answer
67 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 ...
2
votes
2answers
579 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 ...
2
votes
1answer
637 views

How to find the localized name of the Web Part Gallery

I have learned (still a SP-Noob...) that I have to take care of removing webParts that I deployed as part fo a solution myself. Now I have coded something like string file = "MyWebPart.webpart"; ...
2
votes
1answer
3k views

Error occurred in deployment step 'Add Solution': Sandboxed code execution request failed (but no implementation at all)

I realize of course that there is another question with the same title, and mine is a very similar question, but with a slightly different issue, I think: I have created an empty feature with an ...
2
votes
1answer
184 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. ...
2
votes
2answers
490 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 ...
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 ...
2
votes
1answer
306 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 = ...
2
votes
3answers
1k views

Sandboxed Webpart - Is it possible get the current logged in user?

Using standard windows authentication I attempting to get the identity of the logged in user so I can update a value in a list that this webpart is interacting with. I have tried: SPWeb currentWeb = ...
2
votes
3answers
4k views

Can I activate the Sharepoint Server publishing Infrastructure feature at the site collection level within a sandbox solution?

I have this code which works in a farm solution, but not in a sandbox solution. Is it possible to do this with a sandbox solution? The table in this link ...
2
votes
2answers
157 views

Web part custom properties are cleared after save - until page refresh

I have noticed a bug that occurs on all custom web parts I created. Let's assume I have following web part (sandbox solution) with two properties: using System; using System.ComponentModel; using ...
2
votes
1answer
150 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 ...
2
votes
2answers
1k views

file upload in sharepoint sandboxed solution

I need help regarding file uploading in sandboxed solution. In a thread in this portal somebody gave the following link as a solution to this problem: ...
2
votes
3answers
538 views

.NET Chart Controls in Sharepoint 2010 Sandbox

I'm trying to use the .NET Chart Controls in my Sharepoint 2010 Sandbox solution. I have downloaded and installed the MSChart for .NET 3.5 from ...
2
votes
1answer
867 views

Feature activation suceeds in sandboxed server environment, but fails in SharePoint Online. How do I find what's wrong?

I am currently developing a solution in C# with a feature that uses the SharePoint API to create a number of sites, lists, list views etc. The final result is going to be used on SharePoint Online. ...
2
votes
1answer
1k views

Add choice to SPFieldChoice from an Eventreceiver in sandboxed

I am trying to make a sandboxed solution that adds a couple of itemeventreceivers to a list, that add the items to the choices of a choicefield. The result would be something like a lookup field, ...
2
votes
1answer
216 views

Sandboxed solution; social tags?

I want to create a webpart to retrieve some of the social tags a user has used. This has to run in SharePoint Online ie a sandboxed solution. I have code which does the same, but already the first ...
2
votes
3answers
623 views

Do Sandboxing solutions support PortalSiteMapProvider?

According to these two articles, Sandboxing supports 'Navigation'-- http://www.sharepointusecases.com/index.php/2010/03/introduction-to-sharepoint-2010-sandbox-solutions-for-site-collection-owners/ ...
2
votes
2answers
3k views

Enable feature of SharePoint sandbox solution

I have a .wsp file that is deployed to the remote server by powershell script. The solution is deployed successfully and I can see the solution feature in the site collection features, I can activate ...
2
votes
3answers
2k views

Problem debugging web part on SharePoint 2010 beta and Visual Studio 2010 beta

I have created a "Hello World" web part. When I pressed F5 in Visual Studio 2010, I got the following error. I have already got Microsoft SharePoint Foundation User Code Service started. Can anyone ...
2
votes
1answer
15 views

Update Panel not working in Sharepoint online sandbox solution

I have added a UpdatePanel on the webpart and then when I upload a .wsp to office 365 then & open the page(which contains this webpart) then error occur: Web Part Error: Sandboxed code execution ...
2
votes
1answer
344 views

Generating User Security Context from a SharePoint Online workflow Activity

I have following SharePoint components-- A SharePoint online site with bunch of document libraries. Deployed workflow custom actions using visual studio and sandbox solution. Created provider ...
2
votes
4answers
135 views

How to create permission level for add only

I need to create a permission level for allowing to add only in document library. The issue is when i add permission: Add items, it checkes automatically View Items I'm n sandbox solution so i don't ...
2
votes
1answer
660 views

Sharepoint Foundation 2010 : Unable to create new sites in my site collection

So I had originally upgraded an old WSS 3.0 site to SharePoint Foundation 2010 by the database attach method. Site worked fine for a couple months until now. Now we our unable to create new sites in ...
2
votes
1answer
285 views

Custom Action in user dropdown

Im trying to implement a custom action in the logged in user dropdown (when you click 'sp_admin' in the image below). The custom action should be a text called "Switch user", which when clicked ...
2
votes
1answer
302 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. ...
2
votes
1answer
101 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 ...
2
votes
1answer
403 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 ...
2
votes
1answer
715 views

How to use dll file and resource files in Sandbox Solution of SharePoint Online (Office 365)?

I am currently working with SharePoint Online(Office 365), so that i am creating the sandbox solution for creating custom web-parts. Here problem is that i want to use Ajax Control Toolkit(dll) and ...
2
votes
2answers
327 views

Upgradable Sandboxed solution without DLL

I have a sandboxed solution with these items: A module Elements.xml (ElementManifest) HelloWorld.txt Package MyPackage-1.0.1 A feature Scoped for site In addition the solution is set to ...
2
votes
1answer
539 views

SharePoint Online / 365 - Parse .MSG file server-side without outlook

I need to parse .msg files saved from Outlook, extract subject and attachments. Is it possible to parse msg files without a 3rd party extension in a sandboxed solution? The .msg files will be ...
2
votes
1answer
333 views

Sandbox: Localize listInstance title

how to localize listInstance title in sandboxed solution? It is posible to add Resources.resx file to feature and localize ListDefinition: <ListTemplate Name="TagsListDefinition" ...
2
votes
1answer
230 views

Sandbox + Custom Site Page Template + SPFile.CustomizedPageStatus

Have created a Site Page Template and provisioned an instance into my Team Site's Wiki Library. <Module Name="CustomInFeature" Path="SitePageTemplates" List="119" Url="SitePages" > ...
2
votes
2answers
2k views

Adding SPUsers to SPGroups programmatically changes User ID

In a SharePoint Online (Office 365) environment we created a Sandboxed WebPart to put SPUsers in SPGroups. The SPGroup is created on rootlevel and has been given permissions on a subsite. This Subsite ...
2
votes
2answers
265 views

ServiceLocator in Sandbox: is anyone experiencing RemotingExceptions?

I posted an issue on SP Guidance tracker after quite some searching, but I saw several unanswered issues there so I'm trying here as well. I think I have a very simple Proof Of Concept: a Sandbox ...
2
votes
1answer
1k views

Custom file upload in sandbox

I have a custom web part in a sandbox solution. Inside of the web part I have added an <input type="file" />. Upon postback I read the file using HttpContext.Current.Request.Files and save the ...
2
votes
1answer
245 views

Asynchronously load a Sandboxed Web Part

I'm wondering if there is an way to load custom Sandboxed Web Parts asynchronously. I have done this earlier with ScriptManager, I understand that this not possible with Sandboxed solutions. And these ...
2
votes
1answer
1k views

VS Power Tools for SharePoint - InitializeControl does not exist in the current context

I don't think this qualifies as a 3rd party product, so I'm posting here. I have a clean VM with VS2010 SP1 installed. I then installed the VS Power Tools for SharePoint. I'm attempting to create a ...
2
votes
0answers
45 views

Multiple Sandbox Worker Process Proxy spawning

I am setting up a new SharePoint 2013 dev vm (SP2013 SP1 and Sept 2014 CU) and I have enabled the Sandboxed Code Service in Central Admin. This causes multiple sandbox worker process proxy ...
2
votes
0answers
33 views

convert to sandbox

how i can deploy a custom webpart solution inheret Microsoft.SharePoint.WebPartPages.DataFormWebPart as sandbox solution ? as microsoft documentation ...
2
votes
2answers
608 views

How to add tooltips to sharepoint 2013 form fields

I am working with a User (sandbox) Solution created in Visual Studio 2012 for SharePoint 2013. I have been asked to add custom tooltips to the default new and edit form fields. I have not been able ...
2
votes
1answer
278 views

Visual Web Part Property Validation in Sandbox Solution [SharePoint Online 2013]

How can I validate a custom web part property in a Sandbox solution (SharePoint Online 2013 environment)? I am throwing a WebPartPageUserException when validation fails, as shown below. private ...
2
votes
0answers
330 views

Custom form for custom list causing “A potentially dangerous Request.Path value was detected from the client (:)”

I am working on trying to convert a custom sandbox solution to work with SP2013 Online. I can get the feature to activate, and all of our lists are created. However, the custom form we use for the ...
2
votes
0answers
291 views

Provisioning publishing pages with custom webparts in SharePoint 2013

I have a sandboxed solution where i provision publishing pages with custom web parts. Like this: <Module Name="CustomPage" Url="$Resources:cmscore,List_Pages_UrlName;" ...