Tuesday, December 17, 2013

Speed-up troubleshooting with Merge-SPLogFile cmdlet

If there is a medium or large Server Farm you are managing then it is a pain when it comes to troubleshooting using Log file entries.

Thankfully there is a simple cmdlet that merges the log files from ALL THE SERVERS in the farm and provides the entries in a user-define output file. What's more, we can even filter based on several key parameters such as CorrelationID, Date, Area, Category etc.

Here's the syntax for the same -

Merge-SPLogFile -Path  [-Area ] [-AssignmentCollection ] [-Category ] [-ContextFilter ] [-Correlation ] [-EndTime ] [-EventID ] [-ExcludeNestedCorrelation ] [-Level ] [-Message ] [-Overwrite ] [-Process ] [-StartTime ] [-ThreadID ]

Technet reference http://technet.microsoft.com/en-us/library/ff607721.aspx


Saturday, November 16, 2013

Fetching Social Posts data using .NET CSOM in SharePoint 2013

I was looking up on how to work with Social Feeds using the .NET CSOM and worked out some code. Here's the code the retrieves all the Social feed post for a given user and displays them. It also provides option to enter a reply, which is then posted to that Thread.


Friday, October 04, 2013

SharePoint 2013 August 2013 Cumulative Update

Recently I rebuilt SP2013 on my box and updated to the latest SP 2013 August '13 Cumulative update. As usual I stopped the following services before running the updates -

1. IIS Admin Service
2. SharePoint Timer Job Service
3. All Search Services

Stopping the services is to make the update run faster, else it takes many many hours to complete. After running the update, restart and run the Configuration Wizard.

Once the update and re-config is completed, you should be able to see the version number of the Servers and DBs updated to 15.0.4535.1000.

Please note that only the Update for SP2013 Server needs to be run. There is no need to run the update for SP2013 Foundation.as it's included within the SP2013 Server update. An of course the March 2013 Public update needs to be in place before running this update. (The Aug 2013 update included the April and June updates so no need to run those either).

Here are the download Links - 

- SharePoint 2013 August '13 Cumulative Update (CU) - http://support.microsoft.com/hotfix/KBHotfix.aspx?kbln=en-us&kbnum=2817517

- SharePoint 2013 March '13 Public Update - http://www.microsoft.com/en-US/download/details.aspx?id=36989





UserProfile Synchronization with Active Directory Direct Import

Since importing User profiles from AD using Forefront Identity Manager Sync Service is problematic and buggy, SharePoint 2013 includes a new type of import which bypasses the Forefront Identity garbage all together and directly imports from AD. The upside of this approach is that the import is blazing fast and the down-side is that it can be done only one-way. However, a one-way import is more than sufficient for most environments.

In this post i am going to show the steps involved in configuring and running the AD Direct import -

1. The first thing is to make sure that you have a User Profile Service Application provisioned and running. If it's not then you will have to create one and make yourself the Administrator of the same.

2. Once the User Profile Service Application is ready, click on the Manage button under Application Management and Manage Service Applications to come to the list of service applications. Scroll down and click on the User Profile Service Application.

3. Doing step 2 should bring us to the "Manage User Profile" page.

4. On this page, under the second heading called "Synchronization", click on the "Configure Synchronization Settings" link.

5. In the page that follows, scroll down to Synchronization Options and select the second radio button labelled "Use SharePoint Active Directory Import". Now scroll all the way down and click the OK button.



6. Now go back to the User Profile Settings page and click on "Configure Synchronization Connections" under the Synchronization heading.


You will see a page that shows all the connections. If this is the first time, then there will be no connections. Now click the "Create New Connection" link.

7. In the "Add New Synchronization Connection" page enter the Domain details and the Sync Account name and password. The Sync account is a service account having "Replicate Directory Changes". I created a service account called "spupsync" and gave it "Replicate directory changes" permission.



On the page, scrolldown a bit and click on the "Populate Containers" button. If the User account has rights and everything is alright with your AD then you should see the Domain name (NETBIOS name) populated. Now expand and uncheck everything except users.


Finally press "OK" button on this page. You should then be able to see the newly created connection.

8. Now create the "Synchronization Timer Job" by first clicking on "Configure Synchronization Timer Job" on the main User Profile Settings page. Then chose the correct import interval (i chose once every day) and click ok.



9. Finally start the Profile Synchronization by clicking on the "Start Profile Synchronization" link. This will run the Synchronization Timer Job and pull the user details from AD very quickly.

Here are some limitations of direct AD Import -

1. Sync in one-way (Import only)

2. We cannot map AD attributes to "System" SharePoint Profile properties

3. We cannot map two different AD properties to the same Profile property

4. We cannot do cross string type mappings (a value string attribute to a multi value string property or vice versa)



Wednesday, July 17, 2013

Visual Studio 2012 Update 3

The Update 3 of Visual Studio 2012 is now available  here - http://support.microsoft.com/kb/2835600

It has improvements for TFS integration and other bug fixes.

Wednesday, June 26, 2013

Saturday, June 22, 2013

Installing the April 2013 Cumulative Update for SharePoint Server 2013

I have been having issues with the original RTM version of SP2013 that i have installed on my Amazon EC2 VM. So i decided to try and install the Cumulative updates that are available for SharePoint 2013.

The latest CU that is available is the April 2013 CU for SharePoint 2013 Server and Foundation. So I downloaded the same and tried installing. On running the installer, it gives the error - "Required Product not found on this machine". This is because if we want to install the April 2013 CU then first we have to install the March 2013 Public Update (PU) first. So points to note are -

1. Install the March 2013 Public Update for SharePoint 2013 first.

2. Do not download the March 2013 Public Update for SharePoint 2013 FOUNDATION as it's included in the SharePoint 2013 Server Public Update itself.

The March 2013 public update for SharePoint 2013 server can be found here -

http://www.microsoft.com/en-us/download/details.aspx?id=36987

After running the installer and mandatory reboot, run the SharePoint 2013 Configuration wizard & check that everything is working fine in SharePoint.

Now download, extract and run the April 2013 CU for SharePoint Server 2013 (DO NOT DOWNLOAD THE APRIL 2013 CU FOR SP2013 FOUNDATION). The April 2013 CU for SharePoint Server 2013 can be found here -

http://support.microsoft.com/hotfix/KBHotfix.aspx?kbln=en-us&kbnum=2726992

After the installation & reboot, run the Products and Technologies Configuration Wizard to complete the Update.

I found some good links for reference and included the same here -

http://technet.microsoft.com/en-us/sharepoint/jj891062.aspx

http://technet.microsoft.com/en-US/office/ee748587.aspx

http://technet.microsoft.com/en-us/library/ff806331(v=office.15)

http://technet.microsoft.com/en-us/library/ff806338(v=office.15)

http://blogs.technet.com/b/stefan_gossner/archive/2013/04/27/april-2013-cu-for-sharepoint-2013-has-been-released.aspx

http://blogs.technet.com/b/stefan_gossner/archive/2013/03/21/march-public-update-for-sharepoint-2013-available-and-mandatory.aspx

http://blogs.msdn.com/b/russmax/archive/2013/04/01/why-sharepoint-2013-cumulative-update-takes-5-hours-to-install.aspx



Monday, May 20, 2013

What's New in Office 365 - Article on SharePoint Team Blog

A nice article on the new features of SharePoint Online by the SharePoint Team can be found here -

http://blogs.office.com/b/sharepoint/archive/2013/04/02/what-s-new-in-sharepoint-online-top-10.aspx

Hope it helps in understanding the capabilities of the updated SharePoint online.

SharePoint 2013 - March 2013 and April 2013 CU

The latest CUs (Cumulative updates) for SharePoint 2013 have been released. The links are provided in this Technet Article -

http://technet.microsoft.com/en-us/sharepoint/jj891062.aspx

You can find the April 2013 CU's here -

SPF 2013 April 2013 CU - http://support.microsoft.com/kb/2751999
SP 2013 April 2013 CU - http://support.microsoft.com/kb/2726992

I am hoping that these CUs address some of the issues I am having with making the User Profile Sync service up and running :-)

IT Professional Reviewer's Guide for SharePoint 2013

If you are looking at getting a very quick & to-the-point document on the new capabilities of SharePoint 2013 then download the "IT Professional Reviewer's Guide" from the following link -

http://www.microsoft.com/en-us/download/details.aspx?id=34023

Thursday, May 02, 2013

Setting up Service Applications to run SharePoint 2013 Apps

If you have just installed SharePoint 2013 (and not run the Farm Configuration wizard that instantiates all Service Applications to save memory) and would like to try out some Apps, you will get an error during deployment from Visual Studio 2012.

To enable running of SharePoint 2013 Apps we need to setup the following Service Applications -

1. SharePoint, App Management Service
2. Microsoft SharePoint Foundation Subscription Settings Service

The App Management Service can be created from the Central Admin and does not need any special steps. Just create it like any other Service Application.

The Microsoft SharePoint Foundation Subscription Settings Service cannot be instantiated using the UI and can only be created using the following using PowerShell script -


Monday, April 29, 2013

Creating an App Domain for SharePoint Hosted Apps in SharePoint 2013

I just finished setting up a local development environment on my laptop (Guess the configuration? Corei3, 6GB RAM) and find that in spite of the low end configuration of the laptop, SharePoint 2013 runs decently (I have not configured any of the services such as Access Services, Excel Services etc. since my focus is only on doing some App Development).

One of the things that we have to do to make SharePoint 2013 run SharePoint-hosted Apps is to configure a   separate Domain in the DNS. Some people call it the AppDomain and it's misleading because we also have the concept of AppDomains in .NET. 

The first step is to create an instance each of the "App Management Service Application" and "SharePoint 2013 Foundation Subscription Settings Service Application". The App Management service can be created from Central Admin whereas the Subscription service can only be created using PowerShell. I will discuss both in my next post. But make sure that you have both the Service Applications instantiated and associated with your HostWeb (Site to which the Apps will be added).

For now let's look at the steps required to create an App Domain using the DNS Manager in Windows Server. I am running Windows Server 2008 R2 and screens might slightly differ in Windows Server 2012.

Step 1 : Open the DNS Manager

You can find it at Start > Administrative tools > DNS

Step 2 : Create a new Forward lookup Zone

Right click on the Node called "Forward Lookup Zones" and click on "New Zone..."



Step 3 : Select Zone Type

In Zone Type screen, choose "Primary Zone"



Step 4 : Under "Active Directory Zone Replication Scope" choose either the first or second option depending on your domain (For enterprise domains choose the first option, for standalone domain on a dev box choose the second option).



Step 5 : Enter the App Domain Name

This is the interesting part, If your parent domain is called MYDOMAIN.INT, then choose a name such as
APPS.MYDOMAIN.INT.

In my case my domain is called TRAINING.INT so i entered APPS.TRAINING.INT.

Remember, when you deploy your Apps, each App will run under an address such as -

http://app-fdfd323.apps.training.int/

There is also an option to prefix a string to the encoded domain value (more of that later).


Step 6 : Specify Dynamic Updates

Choose the last option "Do not allow dynamic updates"



Step 7 : Verify and Press Finish

Verify the details and press the "Finish" button to complete the Wizard. 



Step 1 - 7 will create a new Domain under which SharePoint Host Apps will run.

Step 8 : Create a wildcard CNAME entry for the App Domain and Point the CNAME to your SharePoint Server

The last step in the DNS Manager is to create a CNAME (Canonical Record) DNS Entry by first expanding the Forward Lookup Zones node, right clicking on the App Domain node and then choosing "New CNAME..". 

In the New Resource Record Dialog, enter * in the Alias name field and in the FQDN field, specify the Host Name of the SharePoint Server.

In my case, the SharePoint server is called "SHAREPOINT" and domain name is "TRAINING.INT" so I entered "SHAREPOINT.TRAINING.INT"

Now press OK to complete the creation of CNAME entry.



Well that's all you have to do in the DNS Manager, but we are not done yet. The final step is to configure APP URLs in the Central Admin. So open up the Central Administration Website and follow these steps - 

Step 1 : Open up Central Admin and Click on Apps

Now enter the App Domain name that we just created in DNS and optionally specify a prefix (If we specify a prefix such as "app" then the Apps will run under a URL such as http://app-fdfd43ed.apps.training.int/...)




If everything has been done correctly (and you have also created and associated the required Service Applications) the you're ready to start running SharePoint-hosted Apps now!


Thursday, October 04, 2012

Technet Resource Centers

Microsoft has done an excellent job of putting together reference and training material for SharePoint 2010 on Technet.

I was looking for something on BI with SP2010 and found this link -

http://technet.microsoft.com/en-us/sharepoint/ee692578.aspx

Going up one level brings us to the "SharePoint 2010 Resource Centers" on Technet -

http://technet.microsoft.com/en-us/sharepoint/ff465365

I wish these links could be some good and easy to remember subdomains or sub-sites on TechNet to make it easier to find.

Anyways i hope the resource centers links are good starting points for deep dives into specific topics.

Wednesday, August 08, 2012

Download MSDN Magazine for free

Folks, if you remember reading the print issues of MSDN Magazine and want to read them again, you can download all the older and latest editions in electronic format from here - http://msdn.microsoft.com/en-us/magazine/ee310108.aspx ( PDF format for latest ones and .CHM format for archived ones)

Happy reading!

SharePoint 2013 UI Improvements - Team Site Improvements

Writing this blog article, I have opened up SharePoint 2013 preview in another browser window to play around with and understand some of the new UI features. In this series, we'll be looking at the Team Site and in the next, the Publishing site (Site with Enterprise Features turned-on).

Firstly, the whole UI is modelled on the minimalist Office 2012 UI - flat, neat 'n' clean and with elements of the Windows 8 metro thrown in for good effect. The UI and Functionality are aimed at the typical office worker and have a very informal air about them.

The Team Site - The Office 365 preview of 2013 comes with a default teamsite that looks like this - 

Home page of TeamSite with different elements marked. Those marked with * are new (including the entire Action Menu)

Let's look at some of the improvements and changes in 2013 when compared to SharePoint 2010.

Hidden Ribbon - One of the changes that increases the screen real estate is the hidden ribbon. In 2010 the ribbon is visible by default and we had to hide it manually. Now the ribbon is hidden by default. To get the ribbon, we have to click the Menu item in the TopLink bar and to hide it just click on the Browse link.


Ribbon 'on-demand'


This is a cool feature, as it reduces the page clutter. Notice how the ribbon hides the Site Icon, Title and Search Box when it is visible without pushing them down.


"GettingStarted" WebPart - This is a webpart that diplays Metro style icons that display links to common tasks. On hovering over any icon the translucent overlay slides up to cover the entire icon. Looks like this webpart is not customizable directly.


The "GettingStarted" WebPart on the Teamsite Home Page



Editable Left Nav bar - The Left Nav bar (list of links on the left) are editable in-place now. Click the "Edit Links" button below the left nav and press the "+" button, which then pops up a dialog in which we can enter the title and url for the new link. All the editing's In-place and using a user-friendly modal dialog as show in the images below.




Editable Top Nav Bar - Similarly, the Top Nav bar too is editable in-place with similar UI as shown below-



All efforts have been made to enable the end-user to customize the navigation, in-place, without having to go to the settings page links. It makes the UI much more intuitive and user-friendly.

Document Library View UI Improvements - Now adding or uploading a new document to a document library does not require going to the ribbon buttons, instead, a context sensitive menu pops up on the page itself that has links for creation / upload.



Welcome Control and Site Action Menu changes - In this edition, 'all the action' has moved to the top left so that the user has all the clickable controls within close reach.




Those familiar with 2010 may already know the functionality behind these buttons, so we are just going to look at what's new! Well the coolest thing is the "Focus on Content" button - press this and the Left Nav, Site Icon, Site Title, Top Nav and Search box are hidden or shown (toggle button). When these are hidden, the PlaceHolderMain (Main area) expands to fill all the space below the ribbon. This allows the user to focus more on the content rather than getting distracted by the leftnav, icon and title and it gives more screen space to display content! With this rate, I think, the next version of SharePoint will have minimal.master as default masterpage :-).





All these new features are on just the home page. In the coming days as we'll explore more to find out the
improvements on the inside.





Wednesday, August 01, 2012

First look at SharePoint 2013 (Office 365 preview)

I just signed up for an Office 365 Preview account (Preview of SharePoint 2013 on the cloud). It's the same SharePoint that's available for download and install. Since the Hardware requirements are pretty heavy (24 GB RAM for SP2013 Preview), I'm not planning to install it locally anytime soon. For now, the online version is good to play with :-)

Here are a few screen shots from the preview site -

SharePoint Team Site (Home Page)



Document Library default View


Notice that the Ribbon does not remain visible all the time, it only appears if we click on the tab - one improvement since it used to take up lots of screen real estate!


Document Library "Library" ribbon


Public Site on Office 365

The all-new publishing site ?



This post is not meant to be a "What's New" article but just a preview of how the new 2013 is going to look for those who are curious and excited as me to find out all about the new SharePoint (2013). Of course, based on feedback, MSFT will surely make lots of changes, so the final version may be slightly different from the one we see now.

You can signup for a preview of the new Office 365 based on SharePoint 2013  here - http://www.microsoft.com/office/preview/en/try-office-preview

In the coming days, i'll dig deeper and blog about the cool new features that 2013 has!

SharePoint 2013 Preview available now!

Microsoft has released the preview versions of SharePoint 2013 recently. Here are the links to download -

Microsoft SharePoint 2013 preview - http://technet.microsoft.com/en-us/evalcenter/hh973397

Microsoft SharePoint 2013 Foundation preview - http://www.microsoft.com/en-us/download/details.aspx?id=30345

Microsoft SharePoint Designer 2013 - http://www.microsoft.com/en-us/download/details.aspx?id=30346

Hardware and Software Requirements for 2013 - http://technet.microsoft.com/library/cc262485(office.15)?ocid=fwlink :-(

SharePoint 2013 on the Cloud - http://community.office365.com/en-us/preview/default.aspx

If you are interested in trying out the release candidate and trial versions of the new Windows Server 2012 , SQL Server 2012 with Visual Studio 2012, you can follow these links -

Windows Server 2012 RC - http://technet.microsoft.com/en-us/evalcenter/hh670538.aspx

SQL Server 2012 Trial - http://www.microsoft.com/sqlserver/en/us/get-sql-server/try-it.aspx

Visual Studio 2012 RC - http://www.microsoft.com/visualstudio/11/en-us/downloads#vs

It's time to switch again!

Monday, June 25, 2012

Public site branding pains in Office 365 P1 Plan

I have been developing a public facing website on Office 365 P1 Plan (Small to medium size enterprises) where I've tried to customize the look and feel. Here are some things that you have to keep in mind when planning to run a public site on Plan P1 -


  • No Publishing Features - you heard it right. Publishing Feature is not installed on the P1 plan public site. Due to this the following limitations are encountered -

    1. No Publishing MasterPage - Cannot develop a Custom Publishing masterpage in your local and deploy to O365 P1. None of the Publishing controls or features work.

    2. No Popup menu for Top Nav - If you are planning for a Pop-up menu, forget it. TopNav made of    dynamic Popups driven via SiteMapProvider do not render at all.

    3. No Page Layouts - Cannot have Page Layouts based on custom Content Types since Publishing Feature is not available (so forget about having Field Controls on your site pages)

    3. In-Browser Editing only with root.master - If you want In-Browser content management (Page Edits) then you have to stick to the root.master page that is found in the root of the site (and not in the /_catalogs/masterpage folder).

    Any changes to root.master makes it Customized (different from the Site Definition) and this causes
    SharePoint to throw a correlation error. (I tried putting some simple Javascript and Jquery with script tags and it broke the masterpage!

Using Recoil with SPFx Try out the latest alternative to Redux with SPFx When developing with Redux or MobX, we have ha...