Jean Paul's Blog

There are 2 types of People in the World, One who Likes SharePoint and..

  • Microsoft MVP

  • MindCracker MVP

  • CodeProject MVP

  • eBook on SharePoint 2010

  • eBook on Design Patterns

  • eBook on Windows Azure

  • NLayers Framework @ CodePlex

  • MSDN Forums

  • .Net vs. Java

    Due to Public Demand

Archive for July, 2013

SharePoint 2013 – Look & Feel of SharePoint 2010

Posted by Jean Paul on July 30, 2013

People who prefer SharePoint 2010 Look & Feel inside SharePoint 2013 can still have it. In this article I will provide the steps to achieve the same.


Step 1: Open Central Administration

Open you SharePoint 2013 Central Administration screen.


Step 2: Create new Site Collection

Choose the Create site collections link from the Application Management group.


Enter the information like Title, Template, Administrator etc.

Step 3: Choose SP 2010

This is the most specific step. Choose Experience version as 2010.


Enter the other parameters & click Ok to create site collection.

Step 4: Test new site

Now you are ready to test the new site collection. On entering new URL, you can see the site below.


Now you are ready with the SharePoint 2010 look & feel for a SharePoint 2013 site.


Please note that SP 2010 is not just a theme but an experience. Some of the advanced SP 2010 experience items will be missing here.



In this article we have explored how to create a site collection with SharePoint 2010 look & feel or experience.

Posted in SharePoint | Tagged: , , , | Leave a Comment »

Redmond & MCM

Posted by Jean Paul on July 27, 2013

At last I have reached Redmond!  Need to work on the MCM part.

MCM (Microsoft Certified Master)

MCM is officially MCSM now – Microsoft Certified Solutions Master.  MCSM have different tracks like:

  1. MCSM Data Platform
  2. MCSM SharePoint
  3. MCSM Communication
  4. MCSM Messaging
  5. MCSM Directory Services

MCSM SharePoint

MCSM SharePoint requires the following 7 certifications.

  1. Exam 410 – Windows Server 2012 – Installing & Configuring
  2. Exam 411 – Windows Server 2012 – Administration
  3. Exam 412 Windows Server 2012 – Configuring Advanced Services
  4. Exam 331 – SharePoint 2013 – Core Solutions
  5. Exam 332 – SharePoint 2013 – Advanced Solutions
  6. Exam 488 – SharePoint 2013 – Core Solutions – Development
  7. Exam 489 – SharePoint 2013 – Advanced Solutions – Development

The first 3 certification are of same theme (1 to 3) and falls in the Windows Server 2012 category.  Playing around & attaining the certification will yield Solid Expertise in Windows Server track.  Additionally, we will get the title of MCSA (Microsoft Certified Solutions Associate)

After the above 7 exams, the real MCSM exams starts.  There are 2 of them.  To my knowledge, these 2 exams have to be performed in the Microsoft Redmond campus.


If anybody interested in the track, I can collect more information about it. 



I hope I have provided the basic information to start with MCSM certification.  It is considered as the Excellence in particular track, would require real spark & dedication to attain the same.

Posted in Uncategorized | 4 Comments »

Choice Field with Multiple Selections

Posted by Jean Paul on July 17, 2013

In this article I would like to take you through the ‘Multiple Selections’ possibility of Choice Columns, which is a less known feature.


Choice Field

Choice Field allows us to select an item from a set of multiple choices. For example, we are creating a choice field for Color & Choices Red, Green, Blue, and Yellow.

Create a new library & add anew column of type Choice.


You can see that the user can only select one of the values from drop-down.


Choice Field with Multiple Selections

Now we can enable multiple selections from a Choice Field. Open the list/library settings click the choice column & modify the ‘Display choices’ selection to ‘Checkboxes’.


Now you can see the effect of change.


You can see that the drop down turned to be check boxes, thus enabling user to do multiple selection.


Metadata Term is also another way to associate multiple values to a column. In this case we have to configure Managed Metadata for the site.



In this article we have explored how to enabled Multiple Selection for a Choice Field. I hope this will help you in real world scenarios.

Posted in SharePoint, SharePoint 2010 | Tagged: , , , | Leave a Comment »

Create Site Collection with New Managed Path, Content Database

Posted by Jean Paul on July 14, 2013

In this article I would like to share the PowerShell script which performs the following:

1. Create new content database

2. Create new managed path

3. Create new site collection

PowerShell Script

Following is the PowerShell Script which performs the same.

# Add Snapin

If ((Get-PSSnapIn -Name Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue) -eq $null )


Add-PSSnapIn -Name Microsoft.SharePoint.PowerShell


# Create Content Database

New-SPContentDatabase -name “DATABASE-NAME” -WebApplication “http://WEB-APP-URL”

# Create Managed Path

New-SPManagedPath -RelativeURL “path/subpath” -WebApplication “http://WEB-APP-URL” -Explicit

# Create Site Collection

New-SPSite http://WEB-APP-URL/path/subpath -OwnerAlias DOMAINuser -Name “Site Collection Title” -Template “STS#0” -ContentDatabase “DATABASE-NAME”


You can verify the new site using the URL:


You can verify new managed path through Central Administration >Main Page > Select web application > Managed Paths (toolbar item)


You can verify the new content database through Central Administration > Main Page > Manage Content Databases link.



The same PowerShell script will be added to PowerShell Repository.  Please give me some time to do it.


In this article we have explore the PowerShell script to create new site collection with new managed path & content database.  I hope this will be useful for site conversion activities.

Posted in SharePoint, SharePoint 2010 | Tagged: , , , , , | Leave a Comment »

How to Delete a Managed Path?

Posted by Jean Paul on July 14, 2013

Imagine that you created a wrong managed path.  How to delete it?

  1. We can delete using Central Administration
  2. We can delete using PowerShell
  3. We can delete using Server Object Model

In this post, I will show how to delete a managed path using Central Administration.

Open Central Administration

Open Central Administration & Open Manage Web Applications link as shown below:


In the appearing page, select the web application, click the Managed Paths button as shown below:


You will get the following dialog:


Select the path, then click the Delete selected paths link from the top.  Your link is deleted.

Click the OK button to close the dialog.


In this post, we have explored how to delete a managed path.

Posted in SharePoint, SharePoint 2010 | Tagged: , , , , | Leave a Comment »

Content Type – Advantages, Creation, Association

Posted by Jean Paul on July 14, 2013

In this article I would like to reveal the advantages of Content Type in real world scenarios.

What is Content Type?

A content type is a reusable collection of metadata (columns), workflow behavior and other settings for a category of items or documents.


We can manage Content Types through the Site Actions > Site Settings > Content Types page.

Advantages of Content Type

Reusability: We can create a content type & reuse across the site. For example, we can create a content type named Expense & reuse it in multiple departments like HR, Marketing, Research etc.


Additional to columns, we can reuse the workflows, custom forms associated with Expense content type. The reusability feature helps in reducing time effort in creating redundant items.

Standardization: Content Type allows quick standardization of items through definition in one place.

Centralized Control: We can apply changes to existing content type & the associated list or library will reflect changes automatically.

For example, if we add a Description column to the above Expense Content type, the change will be reflected in all associated libraries.

Another example, we can create custom new/edit forms for a content type & the changes should reflect everywhere. So, quick standardization is possible through content type.

Default Content Type: We can add a new content type to a library or list & make it default. Default Content Type will be invoked while using the Add Document or Add Item links.

Multiple Associations: We can associate multiple content types to a list or library. For example a Project Library can have different content type associated like: Plan, Expense, Meeting, Discussion etc.

Creating Content Type

In this step, we can quickly create a content type. Open Site Actions > Site Settings > Site content types link as shown below:


In the appearing page, click the Create button.


You should get the screen below to enter the Content Type detail. You can create a content type inheriting from existing content types like Item, Document, Folder etc.

For the time being, please select the Item content type from List Content Types group. Enter the name of new content type as Expense.


Click OK button to save changes. You can see the new content type created in the content types page, make sure you check under the Custom Content Types group.


You can edit the above Content Type & add remaining columns Amount, Date & Person.


Now we are ready to associate the above content type to a List. As we have created a List Content Type, we can associate it with List. (for library, we need to create Document content type)

Open an existing List & choose List Settings. From the Advanced Settings, check the option Allow Management of content types.


Coming back to the List Settings page, choose the Add from existing content type link.


In the appearing page, you can select our Expense content type & click the Add button.


After clicking Add button, click Ok button to continue.

Now you are ready to use the new content type. Go to the List, click the New drop down, You can see the Expense item listed there.


We can make a content type as Default which will set the New command to the specified item.

On clicking the Expense item, you can see the dialog box with Expense fields.



Please note that wise usage of Content Type, in the long run, should save Time, save Effort and increase Quality of Content Management.



In this article we have explored Content Type, Advantages, Creation and Association.

Posted in SharePoint, SharePoint 2010 | Tagged: , , , , | Leave a Comment »

Associate Metadata with Library

Posted by Jean Paul on July 12, 2013

In this article I would like to demonstrate association of Metadata with a Library.


This article assumes that you already have Terms created using the Term store management tool. Now you are going to associate the same with a document library.

Site Actions > Site Settings > Term store management


For creating Term Set, please contact the appropriate site collection administrator.

Open Document Library

Open Library Settings > Create column link as shown below:


In the appearing page enter the column name, Term for example & choose type as Managed Metadata.


Scroll down the page & from Term Set Settings section, choose the Term Set.


Click the Ok button to save changes.

Good! You are ready with Term Set associated with the library.

Entering Data

Now you can try entering data along with the Term. Try uploading a new document to the library & you will be prompted with the term input.


You can select the term from a dialog, or type for auto-completion.

After saving the changes, you can see the term in the list view.


Allow Multiple Terms for a Column

In order to allow multiple terms for a column, in the column settings page, choose the option



Associating Terms along with document, items improve the Content Classification resulting in improved search, key filters.



In this article we have explored how to associate metadata with a Library.

Posted in SharePoint 2010 | Tagged: , , , | Leave a Comment »

Layout Problem after Import Site

Posted by Jean Paul on July 9, 2013

In this article I would like to explain a problem I faced after import & the solution.


I was converting a site to site collection using PowerShell commands.

The source site was: http://server/site

The destination site collection was: http://server/newsite

Please note that the URLs are same in this case.


After the import, one of the sub sites having Publishing Pages inside it throws Layout Error as shown:


Error Message: This page is not using a valid page layout. To correct the problem, edit page settings and select a valid page layout.

Root Cause

This is a bug within Exported Sites where the parent site layout master-page url is hard-coded inside the publishing page. There is no way to change it through SharePoint user interface.



You can try one of the following solutions:

1. Use the PowerShell in following link to update the page with correct master page URL link

2. Use the C# code in following link to update the page with correct master page URL link

3. Modify the page manually

Modify the Page Manually

In my case the first 2 options did not worked, then I downloaded the file, modified it, uploaded back & the problem was resolved.

Please follow the following steps:

Step 1: Download File

Open the Pages library of the affected page. You can use direct URL as given below:


In the appearing page choose the Pages library and download the Default.aspx page. (Choose item context menu, Send To > Download a Copy button)

Step 2: Modify File

Open the ASPX file & locate the section <mso:PublishingPageLayout>. A sample text is given below:

<mso:PublishingPageLayout msdt:dt=”string”>/_catalogs/masterpage/WelcomeLinks.aspx, Welcome Links</mso:PublishingPageLayout>

Please note that the link is pointing to the root site, in my case it should point to the new site collection. So I will change the URL: /_catalogs/masterpage/WelcomeLinks.aspx

To new URL: /newsite/_catalogs/masterpage/WelcomeLinks.aspx

Step 3: Upload File

Now upload the file back to the same library & overwrite existing one. Make sure you check in the changes.

Step 4: Retest Page

Now go back to the browser, clear the cache & retry the problem sub site. This time you should see the Page is working correctly.


You need to ensure that the Publishing feature is enabled in the newly created site collection & site. Additionally make sure the master pages are valid. You can see master pages through url _catalogs/masterpage.



In this article we have explored a possible After-Import problem & the Solutions.

Posted in SharePoint, SharePoint 2010 | Tagged: , , , , , | 2 Comments »

Advantage of ULS Logging

Posted by Jean Paul on July 9, 2013

Logging Information is required for Debugging in Production Deployments. In this article I would compare the usage of SharePoint ULS Logging along with regular Text File Logging.

ULS Logging Here we are using SPDiagnostics class for logging information.

Text Logging Here we are using a TextWriter and writing information to file.

uls log

Advantages of ULS Logging

Following are the advantages of ULS Logging:

1. Log Information can be controlled through Central Administration.

2. Built-in classes for writing log information.

3. Sophisticated Tools available for viewing log entries

While writing ULS Log Information, we need to specify Trace Severity & Event Severity.


Through Central Administration, we can control the Trace & Event Severity. Open Configure diagnostic logging from central administration.


You can filter the log information based on severity there:


Thus, even though our code will contain the Log Writing code, the actual writing only takes place based on the severity level allowed through Central Administration.

This gives the advantage of:

1. Turning On writing to log file through Central Administration when required

2. Turning Off writing to log file when debugging is completed

Sample ULS Logging Code

Following is a test logging code with Trace Severity as High.

SPDiagnosticsService.Local.WriteTrace(0, new SPDiagnosticsCategory(“Application”, TraceSeverity.High, EventSeverity.Error), TraceSeverity.High, “Message here”);

Following is a test logging code with Trace Severity as Verbose.

SPDiagnosticsService.Local.WriteTrace(0, new SPDiagnosticsCategory(“Application”, TraceSeverity. Verbose, EventSeverity.Error), TraceSeverity.Verbose, “Big Message here”);

Verbose severity is used to log too much information, for example writing the internal data structure for debugging purpose.


Although Verbose log writing code resides in the Production Deployed Assembly, it will not impact performance when the Central Administration settings is set to exclude Verbose logging.

ULS Log Viewer

You can download the ULS Log Viewer for more convenient viewing of ULS Log information.


You can download from:



In this article we have explored the advantages of using ULS Logging in SharePoint. In real world scenarios this provides more convenience & control in the amount of information logged. You can also use ULS Log Viewer for more flexible viewing options.

Posted in Uncategorized | Leave a Comment »

Open with Explorer Not Working in Server

Posted by Jean Paul on July 9, 2013

While working with SharePoint 2010 Document Library, I found the Open with Explore feature is throwing error on click.


Unlike Windows client operating system, there are some additional steps to be performed in Windows Server machine to get this feature work.


Please follow the steps to solve the problem.

Step 1: Install Desktop Experience

Open Server Manager, Click on the Features link from the left pane & click Add Features.


In the appearing dialog check the Desktop Experience item.


You might get an additional dialogue as shown below, choose the Add required Features button.


Returning to the Add Features dialog, click the Next button to continue.

Click the Finish button of the wizard & wait for operation to complete.

Step 2: Restart Machine

You might require a machine restart to continue with next step.


Step 3: Start Web Client Service

The Open with Explorer feature is enabled through WEBDAV (Web Distributed Authoring and Versioning) which is an extension of HTTP for handling files in web servers.  You need to start the Windows Service named Web Client for enabling this.

The Web Client service is manageable through the Start > Run > Services.msc management console.


Click the Run button to start the service.  You can make the startup type to Automatic.

Step 4: Retest Open-with-Explorer

Now you are ready to test the feature in document library.  Open a library, go to Library tab & click the Open with Explorer button.




In this article we have explored how to enable the Open with Explorer feature for Windows Server machine.

Posted in SharePoint, SharePoint 2010 | Tagged: , , , | Leave a Comment »