Raghu's SharePoint Corner: 2012

My blog has moved!

You will be automatically redirected to the new address. If that does not occur, visit
http://www.sharepointcolumn.com
and update your bookmarks.

November 15, 2012

Error: Installation of Microsoft Identity Extensions Requires .Net Version 3.5 or 4.0

Scenario: Offline/Online (With/without internet connection on server) SharePoint 2013 Foundation Farm setup on Windows Server 2012. Please note this error was shown after enabling .Net Framework Version 3.5 or 4.0 on the server. All the prerequisites were manually installed on the server.

Note: From Software & Hardware requirements for SharePoint 2013 given Prerequisites for SharePoint 2013 I can see that the identity extensions are available only for Windows Server 2008 R2 and not for windows server 2012. 

The below error might pop up when you perform the installation of SharePoint 2013 Foundation Farm setup on Windows Server 2012.
Once you click Ok, the SharePoint 2013 the prerequisite shows up the below error screen 

At first instance after seeing this error you might conclude that we need to install .Net Framework 3.5 or 4.0 on the server to continue with the setup. You might be aware that .Net Framework 4.0 will be installed on the Windows Server 2012 during the setup of windows server 2012. If you want to install .net framework 3.5 on the server you need to enable this feature using Server Manager, from Add roles and Features, you can also install from command line you can refer here (http://www.danielclasson.com/install-net-framework-35-server-2012/).

The following error was logged in the review log files of the prerequisite setup
2012-11-14 21:17:12 - Request for install time of Application Server Role, Web Server (IIS) Role
2012-11-14 21:17:13 - Request for install time of Application Server Role, Web Server (IIS) Role
2012-11-14 21:17:14 - Request for install time of Application Server Role, Web Server (IIS) Role
2012-11-14 21:17:14 - Install process returned (0)
2012-11-14 21:17:14 - [In HRESULT format] (0)
2012-11-14 21:17:14 - Beginning download of Microsoft Identity Extensions
2012-11-14 21:17:14 - http://go.microsoft.com/fwlink/?LinkID=252368
2012-11-14 21:17:14 - Size of download of "Microsoft Identity Extensions" in bytes is "2663"
2012-11-14 21:17:14 - Download of "Microsoft Identity Extensions" completed successfully
2012-11-14 21:17:14 - Installing Microsoft Identity Extensions
2012-11-14 21:17:14 - "C:\Windows\system32\msiexec.exe" /i "C:\Users\SPA37F~1.ADM\AppData\Local\Temp\IDF6B7.tmp.msi" /quiet /norestart
2012-11-14 21:17:14 - Install process returned (0X654=1620)
2012-11-14 21:17:14 - [In HRESULT format] (0X80070654=-2147023276)
2012-11-14 21:17:14 - Last return code (0X654=1620)
2012-11-14 21:17:14 - Reading the following DWORD value/name...
2012-11-14 21:17:14 - Flags
2012-11-14 21:17:14 - from the following registry location...
2012-11-14 21:17:14 - SOFTWARE\Microsoft\Updates\UpdateExeVolatile
2012-11-14 21:17:14 - Reading the following string value/name...
2012-11-14 21:17:14 - PendingFileRenameOperations
2012-11-14 21:17:14 - from the following registry location...
2012-11-14 21:17:14 - SYSTEM\CurrentControlSet\Control\Session Manager
2012-11-14 21:17:14 - Reading the following registry location...
2012-11-14 21:17:14 - SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\RebootRequired
2012-11-14 21:17:14 - Error: The tool was unable to install Microsoft Identity Extensions.
2012-11-14 21:17:14 - Last return code (0X654=1620)
2012-11-14 21:17:14 - Options for further diagnostics: 1. Look up the return code value 2. Download the prerequisite manually and verify size downloaded by the prerequisite installer. 3. Install the prerequisite manually from the given location without any command line options.
2012-11-14 21:17:14 - Cannot retry

Solution:  After reviewing the log files I figured out the following things

1.       The msiexec.exe file specified here 2012-11-14 21:17:14 - "C:\Windows\system32\msiexec.exe" is missing on the windows server system 32 folder, not sure how this happened. To fix this error run the following command on the windows run window msiexec /regserver

2.       Installing Microsoft Identity Extensions from command prompt.In order to perform this use the below command
C:\Windows\System32>msiexec.exe /i "C:\SharePoint2013ServerFiles\prerequisiteins
tallerfiles\MicrosoftIdentityExtensions-64.msi" /quiet /norestart
Note: In the above command C:\SharePoint2013ServerFiles\prerequisiteinstallerfiles is the path where I had downloaded all the prerequisites for SP2013
This will install Microsoft Identity Extensions and creates registry entries , which will help the SharePoint 2013 Prerequisite installer to complete the setup
If anyone has found a better way to do this please feel free to a leave a comment.

August 23, 2012

Offline installation of Microsoft Office Developer Tools for Visual Studio 2012 RTM


Hang on if you don’t have the Installer yet you can find it here (http://msdn.microsoft.com/en-us/office/apps/fp123627.aspx) and download the appropriate one.

If you are planning to start SharePoint 2013 development using Visual Studio 2010 then you might have to wait till Microsoft Releases the Extension

This blog post would help developers who are yet to start SharePoint 2013 Development. The objective would be to provide steps to perform the offline (no internet connectivity) installation of Microsoft Office Developer Tools for Visual Studio 2012 RTM.
If you try to run the Microsoft Office Developer Tool (or web platform installer which you can find it here) in the above scenario, probably you will end up in seeing the below screen.



After going through the log files here are the necessary link to download individual component

Microsoft SharePoint Developer Tools for Visual Studio 2012 - Preview:
http://download.microsoft.com/download/F/3/6/F36774B2-4090-4352-8D73-55A54F6C4E18/ENU/officetools_bundle.exe


Windows Identity Extensions:
http://download.microsoft.com/download/0/1/D/01D06854-CA0C-46F1-ADBA-EBF86010DCC6/r2/MicrosoftIdentityExtensions-64.msi


Workflow Tools 1.0 Beta for Visual Studio 2012:
http://download.microsoft.com/download/9/6/2/9622508B-EE2D-452F-945A-343AA514C140/WorkflowTools_x64.msi


Workflow Client 1.0 Beta:
http://download.microsoft.com/download/9/6/2/9622508B-EE2D-452F-945A-343AA514C140/WorkflowClient_x64.msi


Windows Identity Foundation SDK:
http://download.microsoft.com/download/7/0/1/70118832-3749-4C75-B860-456FC0712870/WindowsIdentityFoundation-SDK-4.0.msi


SharePoint Client Components:
http://download.microsoft.com/download/D/E/0/DE02CCED-5209-49FC-9F1B-0F86D3269D4C/sharepointclientcomponents_x86.msi


Start installing all of them one by one and you should be able to kick start your SharePoint 2013 development using Visual Studio 2012 and Microsoft Office Developer Tools for SharePoint 2013

Note: This post is respect to SharePoint Server 2013 Preview Release

July 26, 2012

SharePoint Server 2013 Preview – Development Environment Installation and Performance Experience

As everyone knows Microsoft released SP2013 Preview (Beta) last week and most of the SharePoint developers are curious to install it and few might have already started exploring. I am sure there is enough blog post around to guide you through the installation. The main intention of the blog post would be to elaborate more on the system configuration and performance from developer perspective

As we know the minimum hardware configuration is pretty high for setting up development environment, developers are worried if they can install and work with a lower configuration. I would say it’s possible but you need to be patient enough to see the “Working on It” screen for some time.

To start with I have the following hardware and software configuration

Hardware

Type
Laptop
Hard disk
500 GB
RAM
4GB DDR 3
Process
Core i7 , 1.6 Ghz

You might be assuming this is a pretty good hardware configuration, but that’s not the case with SharePoint 2013. It eats up almost 3.8 GB of Ram when you start using it and this where you start seeing “Working on it” screen for longer duration when you start creating a site collection. It took almost 5-8 minutes to create my first site collection on the default port.

If you are planning for better usage please don’t run the SharePoint Farm Configuration Wizard for all the services, as this would end up in seeing “Working on it” for almost 20 – 30 minutes.

Here is the snapshot of Physical Memory usage and Process performance




Developers who are facing issues in installing SP2013, it would save your time if you read through the Software Requirement thoroughly before you start installation. Following are the steps which I followed during my first hazel free installation of SharePoint 2013.

  • Install Windows Server 2008 R2 Standard/Enterprise, Add Roles for Active Directory Domain Services, DNS, and IIS etc.
  • Install Windows Server 2008 R2 Service Pack 1
  • Install service Pack for IIS
  • Configure Domain controller, and provide a domain name, so that you can create multiple active directory users.
  • Install Dot Net Framework 4.5 RC
  • Install SQL Server 2008 R2
  • Install SQL Server 2008 R2 Service Pack 1 for SQL Server 2008 R2 ,SQL Management Studio (Optional)
  • Run the SP Server 2013 Preview setups, and Install the prerequisites, Make sure all the prerequisites are installed successfully.
  • Runt the SP2013 Server Preview setup
  • Finally run the SharePoint configuration wizard.



I have decided to work with  the system for next 1 week, if the performance further degrades then will go ahead for upgrading my RAM from 4GB to 8GB (max configuration my laptop can support L)

Note: The above system performance will be different for different hardware configuration

July 16, 2012

SharePoint 2013 public beta has been released


The wait for SharePoint 2013 beta is over.

Microsoft released the public beta for SharePoint 2013. Download here: or
http://www.microsoft.com/en-us/download/details.aspx?id=30345

Here's a bunch of other SharePoint 2013 content 
http://www.microsoft.com/en-us/download/search.aspx?q=SharePoint%202013&p=1&r=40&t=32

Critical Path Training is providing training on SharePoint 2013, you can get more details here
http://www.criticalpathtraining.com/Pages/SharePoint+2013+Training.aspx

Lets start exploring 2013 and its new feature!!

May 21, 2012

CAML Designer the Next Generation CAML Query Builder for SharePoint 2010

CAML Query builder is the favorite tool of SharePoint Developers. The much awaited CAML Query Builder for SharePoint 2010 is released and its termed as CAML Designer. Karine Bosch’s co-developed this tool with Andy Van.
The newer version of tool is developed using WPF and support only SharePoint 2010. For more details of the tool you can visit here.
Snap Shot

May 8, 2012

SharePoint2010 MAC FBA Authentication Issue

Recently we ran into an issue where Custom Forms Based Authentication was failing on MAC machine. The FBA was configured properly without any issues and is working like charm with Windows OS. Did few searches on Google and found that few of them have faced the issues but in a different scenario and following were the work around or fixes were suggested.

  •       Most of them have either wrongly configured Form Based Authentication and on proper configuration   it started to work.
  •      For few the Claims to Windows Token had stopped, and on restart of the services FBA started working.
  •      Few also suggested the performing an IISRESET on the server solved their issues.
  •     In some case the APP Pool Credentials for Security token services was wrong.


All the above 4 fixes where not valid in my scenario since FBA was working perfectly fine with windows OS.

In order to get to the root cause I had to go through the traditional approach of visiting event viewer and SharePoint logs. On analyzing the event viewer log it was found that the Secure Token Service was not getting generated for the users who were trying to log into the SharePoint 2010 site using FBA from Safari browser on MAC machine.

In order to get more exception details in the event viewer, add the following <serviceDebug includeExceptionDetailInFaults="True" httpHelpPageEnabled="True"/>   tag in web.config of Security Token Webservices which resides at the following location “C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\WebServices\SecurityToken”

On restarting the services details of the exception was logged as follows.

Event: 8306, SharePoint Foundation
Task Category: Claims Authentication
Exception Details: An exception occurred when trying to issue security token: Object reference not set to an instance of an object.

On seeing this exception we re-visited the Custom Forms Login page which we had created for FBA.  On debug we noticed that the below link threw the above exception
SPClaimsUtility.AuthenticateFormsUser(Context.Request.UrlReferrer,txtusername.Text, txtpassword.Text);

It was certain that the issues was with Context.Request.UrlReferrer passed to the SPClaimsUtility.AuthenticateFormsUser method. In order to get this working we modified the way we were passing URL parameter to the below approach.

string siteUrl = SPContext.Current.Site.Url;
string extraneturl = siteUrl.ToString();
Uri extrametUri = new Uri(extraneturl);
bool status = SPClaimsUtility.AuthenticateFormsUser(extrametUri, txtusername.Text, txtpassword.Text); and FBA started working on MAC.

Hope this post would help anyone facing similar issue. Please feel free to drop any comment or any other alternate approach.