Wednesday, April 27, 2011

Installing Sharepoint 2010 on Windows7

Basics of installing are mentioned in verbose in the below mentioned link.
http://msdn.microsoft.com/en-us/library/ee554869(office.14).aspx

There are some fun errors I ran into though. I would like to mention them.
1. In step 8 of the documentation where we have to manually enable each of the required Windows Features. There was an error while enabling the features. For that I removed all the configurations related to IIS and then ran the ASP.NET IIS Registration Tool. You can run this by going into your .NET folder (%WINDIR%\Microsoft.NET\) and running:
aspnet_regiis.exe -i
Then run the script given below.

start /w pkgmgr /iu:IIS-WebServerRole;IIS-WebServer;IIS-CommonHttpFeatures;IIS-StaticContent;IIS-DefaultDocument;IIS-DirectoryBrowsing;IIS-HttpErrors;IIS-ApplicationDevelopment;IIS-ASPNET;IIS-NetFxExtensibility;IIS-ISAPIExtensions;IIS-ISAPIFilter;IIS-HealthAndDiagnostics;IIS-HttpLogging;IIS-LoggingLibraries;IIS-RequestMonitor;IIS-HttpTracing;IIS-CustomLogging;IIS-ManagementScriptingTools;IIS-Security;IIS-BasicAuthentication;IIS-WindowsAuthentication;IIS-DigestAuthentication;IIS-RequestFiltering;IIS-Performance;IIS-HttpCompressionStatic;IIS-HttpCompressionDynamic;IIS-WebServerManagementTools;IIS-ManagementConsole;IIS-IIS6ManagementCompatibility;IIS-Metabase;IIS-WMICompatibility;WAS-WindowsActivationService;WAS-ProcessModel;WAS-NetFxEnvironment;WAS-ConfigurationAPI;WCF-HTTP-Activation;WCF-NonHTTP-Activation

2. After the installation is complete the configuration wizard failed for two errors. The errors and the resolution are mentioned below.
Error 1:
Could not load file or assembly 'Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
Reason:
"Windows identity foundation pack" may be missed from your machine.
Resolution:
Download the pack from http://www.microsoft.com/downloads/details.aspx?FamilyID=eb9c345f-e830-40b8-a5fe-ae7a864c4d76&displaylang=en and install it in your Windows 7 machine.


Error 2:
An exception of type Microsoft.SharePoint.Upgrade.SPUpgradeException was thrown. Additional exception information: Failed to call GetTypes on assembly Microsoft.Office.Server.Search, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c. Could not load file or assembly 'System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

Reason:
You will get this error, when you are trying to configure the SharePoint 2010 central admin (SharePoint product configuration wizard). The reason behind the error is, you might not installed the "Chart Control" in your windows 7 machine.

Resolution:
So, download the chart control from http://go.microsoft.com/fwlink/?LinkID=122517 and install it.

These were the fun errors I ran into. Hope this helps geeks to install Sharepoint2010 on their Windows7.



Refernces:sensoft2000-sharepoint.blogspot.com,msdn

Tushar