SharePoint Dragons

Nikander & Margriet on SharePoint

Tag Archives: sharepoint

Copy a site collection

Nice explanation of moving a site collection from a source farm to a target farm: http://bramnuyts.be/2012/01/12/copy-site-collection-from-source-farm-to-target-farm/

SharePoint 2010 Best Practices: Folders not necessarily considered evil

Security settings based on metadata

We didn’t hear about it before, but the TITUS Metadata Security for SharePoint allows organizations to set security settings based on metadata: http://www.titus.com/software/sharepoint/metadata.php Interesting, but we are wondering though: does this revert to item based security? Why not use folders instead (we know, a sensitive topic for many) and save some money?

We’ve learned that in general sales people of 3rd party vendors tend to read this blog, so we won’t be surprised if the answers to these questions pop up in a while in the form of comments. We’ll just have to wait and see.

SharePoint 2010: Best Practices

This Wiki page contains an overview of SharePoint 2010 Best Practices: http://social.technet.microsoft.com/wiki/contents/articles/8666.sharepoint-2010-best-practices.aspx

SharePoint 2010: WCF best practice

If you’re creating a WCF service you basically have two options:
– Create a WCF service in a SharePoint context.
– Create a separate WCF service.

So, when it comes to choosing one of the two scenarios, which one is best practice, and why? Check out our Wiki page at http://social.technet.microsoft.com/wiki/contents/articles/8665.sharepoint-2010-best-practices-where-to-publish-a-wcf-service.aspx

Windows AppFabric Cache API

A couple of years ago we wrote an article about the different ways of accessing SharePoint list items and leveraging enterprise cache in the process: http://www.loisandclark.eu/Pages/Velocity.aspx/ . As it turns out, the contents of the article are still very actual, but the Enterprise cache sample code for the Windows AppFabric Cache (which was called Velocity at the time) needs an update, although the process didn’t actually change that much.

First of all, don’t create any secondaries anymore when creating a new cache on a single server. Instead, do this:

new-cache -CacheName myCache -Secondaries 0

Adding references to the AppFabric caching assemblies is different too:

http://social.technet.microsoft.com/wiki/contents/articles/add-a-reference-to-the-microsoft-applicationserver-caching-client-assembly.aspx?CommentPosted=true#commentmessage

The sample code has changed as well. Signatures have changed a bit, and a couple of class names get prefixed with “Data”:

//Inspired by:
//http://www.hanselman.com/blog/InstallingConfiguringAndUsingWindowsServerAppFabricAndTheVelocityMemoryCacheIn10Minutes.aspx

//Define Array for 1 Cache Host     
List<DataCacheServerEndpoint> servers = new List<DataCacheServerEndpoint>(1);      

//Specify Cache Host Details      
//  Parameter 1 = host name    
//  Parameter 2 = cache port number     
servers.Add(new DataCacheServerEndpoint(“astro”, 22233));      

//Create cache configuration     
DataCacheFactoryConfiguration configuration = new DataCacheFactoryConfiguration();            

//Set the cache host(s)     
configuration.Servers = servers;            

//Set default properties for local cache (local cache disabled)     
configuration.LocalCacheProperties = new DataCacheLocalCacheProperties();      

//Disable tracing to avoid informational/verbose messages on the web page     
DataCacheClientLogManager.ChangeLogLevel(System.Diagnostics.TraceLevel.Off);      

//Pass configuration settings to cacheFactory constructor     
var factory = new DataCacheFactory(configuration);      

//Get reference to named cache called “default”     
//var cache = factory.GetCache(“default”);      
var cache = factory.GetCache(“c1”);

//Then create a region inside the named cache:
try
{
    cache.RemoveRegion(“testregion”);
}
catch
{
    // No region found, but that’s ok.
}

// Pass true if you want to allow the eviction of cached objects.
cache.CreateRegion(“testregion”);

cache.Put(“testregion”, “test”);

//cache.Remove(“testregion”);

Finally, start the Caching Administration Windows PowerShell command prompt and use the following PowerShell command to check out the results of the code:

Get-CacheStatistics myCache

The hidden TimeCard list template

We didn’t really notice it before (okay, and didn’t really miss it either), but it exists nonetheless: the hidden TimeCard list template.

  1. Activate the Group Work Lists feature of the site.
  2. Choose Site Settings > Manage site features > Activate Group Work Lists feature .

After activating this feature, you can create a TimeCard list in SharePoint Designer:

  1. Open the site in SharePoint Designer .
  2. Choose File > Add Item > More Lists > Time Card.
  3. The Time Card list will be created with a default view called My Time Card .This is the MyTCard.aspx page .You can edit it in SharePoint Designer or in browser .

See: http://social.technet.microsoft.com/Forums/en-US/sharepoint2010customization/thread/24e0588b-17fc-43f9-aa85-3d618d225c0f

Colligo goes IPad!

This morning, we received an e-mail that Colligo is trying to bridge the world of SharePoint and IPad:

Workplace use of iPads is skyrocketing – be they corporate-sanctioned or personally-owned.  For companies, the security, compliance and legal challenges involved in having employees store corporate data on their iPads cannot be ignored.

Colligo just released a product that addresses many of the security and deployment issues that organizations are encountering as they try to provide support for the iPads that users are bring to work.

Colligo Briefcase Pro provides secure access to SharePoint on the iPad and I was hoping you’d be interested in reviewing the product.

Here are some product highlights:

  • Colligo Briefcase lets users easily store, view, find and share files, lists, images, documents and emails, including Outlook .msg files, in SharePoint.
  • SharePoint content is automatically synchronized to the iPad, providing instant access to that content, even when offline.
  • Colligo Briefcase enable organizations to leverage their secure SharePoint infrastructure to sync content to an iPad, rather than having users rely on consumer-grade file sharing services such as Dropbox
  • Colligo Briefcase works seamlessly with all of Colligo’s enterprise SharePoint solutions for desktops, laptops and smartphones.
  • An Enterprise version of Colligo Briefcase is available, that enables organizations to centrally manage iPads, push out configurations, and set a number of additional security features, including remote wipe

We were expecting a product like this, and look forward to give it a test spin!

Microsoft SharePoint Online Code Analysis Framework (MSOCAF)

A must have for every SharePoint developer starting with Office 365 development: MSOCAF ( https://caf.sharepoint.microsoftonline.com/ ): a tool used to check code before submitting it to Microsoft for BPOS/Office365.

SharePoint 2010 crawl database best practice

Just created a Wiki page containing best practices regarding the size of the SharePoint crawl database: http://social.technet.microsoft.com/wiki/contents/articles/8217.sharepoint-2010-crawl-database-is-too-large.aspx