RSS Feed Feed your read!

Scot Hillier is an independent consultant and Microsoft SharePoint Most Valuable Professional focused on creating solutions for Information Workers with SharePoint, Office, and related .NET technologies. A frequent speaker at TechEd and SharePoint Connections, he is also the author of 10 books on Microsoft technologies including Microsoft SharePoint: Building Office 2007 Solutions in C# 2005. Scot splits his time between consulting on SharePoint projects and training for Critical Path Training. Scot is a former U. S. Navy submarine officer and graduate of the Virginia Military Institute. Scot can be reached at scot@shillier.com

Archives

January 2010 (17)
February 2010 (1)
March 2010 (1)
April 2010 (2)
May 2010 (1)
June 2010 (1)

Links

Todd Baginski's Blog
BCS Team Blog
SharePoint Team Blog
SharePoint Workspace Team Blog
Andrew Connell's Blog
Ted Pattison's Blog

Tag Cloud

Conferences, MOSS 2007 Archived Post, PowerShell, SharePoint 2010,

Detecting the Sandbox in SharePoint 2010 

Tags:

When you create Sandboxed Solutions, these features are capable of running either inside or outside of the sandbox. Because there are many restrictions on solutions running in the sandbox, you may want to detect if the current solution is running inside the sandbox. The following code will do it:

if (System.AppDomain.CurrentDomain.FriendlyName.Equals(

“Sandboxed Code Execution Partially Trusted Asp.net AppDomain”))

    writer.Write(“You are in the Sandbox”);

 
Posted by Scot Hillier on 20-Feb-10
0 Comments  |  Trackback Url  |  Link to this post | Bookmark this post with:        
 
Failed to render control: Exception of type 'System.OutOfMemoryException' was thrown.

Comments