.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Video: SharePoint 2010: Executing Code in the Sandbox

Posted By:      Posted Date: August 26, 2010    Points: 0   Category :SharePoint
Find out how the Sandboxed Solutions Service provides for a complete isolation system that ensures code running in a sandboxed solution cannot reach out to access information beyond the scope of the deployment. (Length: 12:01)

View Complete Post

More Related Resource Links

SharePoint's Sandbox: Developing, Deploying and Monitoring Sandboxed Solutions in SharePoint 2010


The challenge in SharePoint development has always been the balance between creating and deploying solutions that you can trust not to damage or impair a SharePoint farm. A new feature in SharePoint 2010, called Sandboxed Solutions, enables farm administrators to feel comfortable that the SharePoint farm is safe, gives site collection administrators the authority to manage applications in their site collection, and provides developers with the flexibility to create solutions they know will be deployed in a safe and rapid manner.

Paul Stubbs

MSDN Magazine November 2009

Is your code running in a SharePoint Sandbox?


You could execute a function call that is not allowed in the sandbox (for example call a static method on SPSecurity) and catch the exception. A better approach is to test the friendly name of you app domain:

AppDomain.CurrentDomain.FriendlyName returns "Sandboxed Code Execution Partially Trusted Asp.net AppDomain"

Because you can never be sure that this string changes in the future, a safer approach will be:


See http://www.sharepointoverflow.com/questions/2051/how-to-check-if-code-is-running-as-sandboxed-solution for a discussion on this topic.

Logging to SharePoint 2010 ULS log from sandbox


You can't log directly from sandbox code to the SharePoint ULS log. Developing code without any form of logging is out of this time, so you need approaches for the two situations you can end up with when developing sandbox code:

You don't have control over the server (BPOS scenario):

  • You can log to comments in your HTML code, I know it's terrible, don't log sensitive information
  • Write entries to a SharePoint "log" list (also take care of some form of clean up, for example if list longer that 1000 items, remove oldest item when writing new log message)

You have control over the server:

Video: Creating Custom SharePoint 2010 Field Types and Controls with Visual Studio 2010 and Silverli

Watch the video that accompanies the MSDN article and learn how developers can create rich experiences in SharePoint Server 2010 publishing sites using Microsoft Silverlight 3.

Video: Overview of the SharePoint 2010 Developer Platform

This SharePoint Conference video provides code-based demos and a brief look at the major new features, tools, and hosting options in SharePoint 2010. (Length: 01:14:38)

Video: Developing with the New User Interface Features in SharePoint 2010

This SharePoint Conference video shows how to customize the Ribbon without taking your users out of the look and feel of Microsoft SharePoint 2010. (Length: 01:02:38)

Video: Visual Studio 2010 SharePoint 2010 Development Tools Overview

This SharePoint Conference video provides an overview of SharePoint 2010 development with Visual Studio 2010, including project and item templates. (Length: 01:17:11)

Video: Converting Word Documents to PDF Format Using SharePoint Server 2010 and Word Services

Watch this visual how-to video as you learn how to programmatically convert Word documents to PDF format on the server by using Word Automation Services with SharePoint Server 2010. (Length: 6:15)

Video: Getting Started SharePoint 2010: Creating .NET Framework Types for a Business Connectivity Se

This demonstration shows how to use Visual Studio 2010 to create Business Data Connectivity projects that incorporate external data into SharePoint solutions. (Length: 8:33)

Video: Business Connectivity Services in SharePoint 2010

Business Connectivity Services (BCS) is new to SharePoint 2010 and enables integration with back-end, LOB systems. This video introduces the BCS architecture and External Content Types, which are the cornerstone of BCS. (Length: 8:36)

Video: Creating Business Connectivity Services Applications in SharePoint 2010

This video drills into creating simple no-code BCS solutions from out-of-box capabilities of SharePoint Designer 2010 to more advanced, complex, custom BCS solutions using Visual Studio. (Length: 9:37)

Video: What is Business Intelligence in SharePoint 2010?

Learn about the SharePoint 2010 Business Intelligence (BI) tools for bringing information together for analysis and collaboration to support business decisions. Available tools include status indicators; chart Web Parts, PerformancePoint Services, Excel Services, BI Search, and Visio Services. (Length: 11:51)

Video: Microsoft Visio 2010 and Microsoft SharePoint Designer 2010 Workflow

Learn the specific roles Visio 2010 and SharePoint Designer 2010 play in the development process and how these tools can be used in concert to create a workflow. (Length: 13:22)

Video: Office Client Workflow: Visual Studio 2010 SharePoint Workflow

Learn how project templates for SharePoint 2010 in Visual Studio 2010 allow developers to build sequential and state machine workflows for SharePoint and import reusable workflows created in SharePoint Designer. (Length: 10:36)

Video: Getting Started with SharePoint 2010

In this welcome video, team members tell you what the training kit is all about and what the plans are for the future of the SharePoint learning center on Channel 9. (Length: 6:34)

Video: What's New in SharePoint 2010

In this video learn about all of the new developer features in the SharePoint platform including tools, team sites, and UI enhancements, and take a brief look back to understand how the SharePoint developer story has improved. (Length: 32:45)

Video: SharePoint 2010 Development Primer

This video will get you up to speed quickly with the new SharePoint 2010 application development environment using Visual Studio 2010. (Length: 9:41)
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend