Setting Up the Development Environment for SharePoint Server
Setting Up the Development Environment for SharePoint Server

[This documentation is preliminary and is subject to change.]

When you create or customize SharePoint solutions, it is usually best to develop the solution on a local computer where Microsoft SharePoint Server 2010 or Microsoft SharePoint Foundation 2010 is installed. This article describes how to install a development environment with Microsoft SharePoint 2010 and Microsoft Visual Studio 2010. The development environment that you create by using these instructions will not support SharePoint farm installations, and you should not host active production sites with this configuration. These instructions will enable you to get started with an environment that is specifically suited to developing SharePoint custom solutions.

Step 1: Choose and Preconfigure the Operating System

The requirements for a development environment are less stringent and costly than the requirements for a production environment, and the guidelines in this topic will not support a production environment installation. You have several options for preconfiguring the operating system of a local computer on which you will install SharePoint 2010 for development purposes. The choice you make will be determined by factors specific to your organization and environment (such as budget, the size of your development team, and the operating systems that you and your organization are already using).

In any development environment, you should use a computer with an x64-capable CPU, and at least 2 gigabytes (GB) and preferably 4 GB of RAM for SharePoint Foundation, and 6 to 8 GB of RAM for SharePoint Server.

Following are the options:

  • Install SharePoint on Windows Server 2008 Service Pack 2 x64 (or Windows Server 2008 R2 x64).

  • Use Microsoft Hyper-V and install SharePoint on a virtual machine running a Windows Server 2008 Service Pack 2 x64 (or Windows Server 2008 R2 x64) guest operating system.

  • Install SharePoint on Windows 7 x64, Windows Vista Service Pack 1 x64, or Windows Vista Service Pack 2 x64.

  • Use Microsoft Hyper-V and install SharePoint on virtual machine running a Windows 7 x64, Windows Vista Service Pack 1 x64, or Windows Vista Service Pack 2 x64 guest operating system.

Windows 7 and Windows Vista cannot be used for production deployments of SharePoint 2010. If you use Windows 7 or Windows Vista for your development environment, you should have access to a test environment that has the same operating system installed as your production environment. Windows 7 and Windows Vista are recommended only for developer workstations and should only be used for stand-alone installations. You can use a separate Microsoft SQL Server instance, but you should not configure your installationas a SharePoint farm and you should not host active sites on this configuration.

You must install the WCF Hotfix for Microsoft Windows (KB971831). The hotfix is available at this link for Windows Server 2008 Service Pack 2, Windows Vista Service Pack 1 or Windows Vista Service Pack 2, and at this link for Windows Server 2008 R2 and Windows 7.

Step 2: Install the Prerequisites for SharePoint 2010

SharePoint requires your operating system to have certain prerequisites installed before installation begins. For this reason, SharePoint includes a PrerequisiteInstalle.exe tool that installs all of these prerequisites for you. If your developer workstation is set up with the Windows Server 2008 Service Pack 2 or Windows Server 2008 R2 operating system, to install SharePoint 2010 you only have to run the PrerequisiteInstaller.exe tool, which is included with SharePoint 2010 to install the prerequisites that SharePoint needs, and then run Setup.exe. However, you cannot use PrerequisiteInstaller.exe on Windows 7 or Windows Vista. For those operating systems, you must follow the additional instructions in this section.

Because the default installation works only for Windows Server 2008, you must edit one configuration file and install many of the prerequisites manually. You must perform each of the following steps while logged on with an account that has administrator access on the local computer. These steps assume that you received the SharePoint 2010 distribution as a single compressed executable file named SharePoint.exe for SharePoint Foundation 2010 and OfficeServer.exe for SharePoint Server 2010.

To set up a developer workstation

  1. Copy the SharePoint.exe (or OfficeServer.exe) installation file to a folder on the computer where you are installing SharePoint and doing your development, such as in the following path.

    c:\SharePointFiles

  2. Extract the installation files by opening a Command Prompt window, and then typing the following command at the directory location of the folder where you copied the installation files in the previous step.

    For SharePoint Foundation 2010:

    c:\SharePointFiles\SharePoint /extract:c:\SharePointFiles

    For SharePoint Server 2010:

    c:\SharePointFiles\OfficeServer /extract:c:\SharePointFiles

  3. Using a text editor such as Notepad, open the installation configuration file, config.xml, located in the following path.

    c:\SharePointFiles\files\Setup\config.xml

    Add this line inside the <configuration> tag.

    <Setting Id="AllowWindowsClientInstall" Value="True"/>
  4. Save the configuration file.

  5. Review the complete configuration file. It now looks like the following for SharePoint Foundation 2010. The complete configuration file will be longer for SharePoint Server 2010 (and therefore the text below cannot replace the contents of that file), but should use the same setting for the AllowWindowsClientInstall attribute.

    <Configuration>
      <Package Id="sts">
        <Setting Id="SETUPTYPE" Value="CLEAN_INSTALL" /> 
      </Package>
      <DATADIR Value="%CommonProgramFiles%\Microsoft Shared\Web Server
       Extensions\14\Data" /> 
      <Logging Type="verbose" Path="%temp%" Template="Microsoft Windows
       SharePoint Services 4.0 Setup *.log" />
      <PIDKEY Value="RBWQH-7PFXQ-D6RX2-HVK8Y-HP7F7" />
      <Setting Id="UsingUIInstallMode" Value="1" />
      <Setting Id="SETUP_REBOOT" Value="Never" />
      <Setting Id="AllowWindowsClientInstall" Value="True"/>
    </Configuration>

    All of the text in this configuration file is case-sensitive. If you do not edit the configuration file as described in the previous step or do not save the configuration file, when you try to run the installation you will see the error message shown in the following figure.

    Figure 1. Setup is unable to proceed error message

    Setup is unable to proceed
  6. If you are using Windows Vista Service Pack 1 or Windows Vista Service Pack 2, you must install the following prerequisites:

  7. If you are using Windows Vista Service Pack 1, Windows Vista Service Pack 2, or Windows 7, install the following additional prerequisites:

  8. Manually enable each of the required Windows Features. You can do this quickly by copying and running the following command in a Command Prompt window.

    The following text contains line breaks. You must remove the line breaks to run this script from a command prompt.

    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-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
  9. Verify that the required Windows Features have been enabled. The command in the previous step enables all of the required features in the Internet Information Services section of the Windows Features dialog box (which you can access through the Programs section in Control Panel). Use Figure 2 and Figure 3 to check that you have enabled all of the required Windows Features. If any features are missing in your own operating system, return to the Internet Information Services section of the Windows Features dialog box and enable them.

    NoteNote

    The following figures represent one Windows features dialog box on a computer running the Windows 7 operating system. They have been broken into two figures for the sake of readability. The list of Windows Features will look the same on Windows Vista.

    Figure 2. First part of Windows Features list from Windows 7

    First part of Windows Features list

    Figure 3. Second part of Windows Features list from Windows 7

    Second part of Windows Features list
  10. Restart your computer to complete the changes you have made to Windows Features.

Step 3: Install SharePoint 2010

  1. To install SharePoint Server 2010 or SharePoint Foundation 2010, open a Command Prompt window, and type the following at a prompt.

    c:\SharePointFiles\Setup.exe

    If you are installing SharePoint Server 2010, you will see a startup page. When the startup page appears, for Install, click Install SharePoint Server. Do not choose Install Software Prerequisites. You will not see this startup page for SharePoint Foundation 2010.

    Figure 4. SharePoint Server startup screen

    SharePoint startup screen
  2. Accept the Microsoft Software License Terms.

  3. On the Choose the installation you want page, click Standalone to install everything on one developer workstation.

    Figure 5. Installation type choice

    Installation type choice
  4. If any errors occur in the installation, review the log file. To find the log file, open a Command Prompt window, and type the following commands. The log file will be displayed at the end of the directory listing.

    cd %temp%
    dir /od *.log
    
  5. After the installation is complete you, will be prompted to start the SharePoint Products and Technologies Configuration Wizard. Before starting the wizard, first install the Microsoft SQL Server 2008 KB 970315 x64. With the wizard open, do the following:

    1. Install SQL Server 2008 KB 970315 x64.

    2. After the Microsoft SQL Server 2008 KB 970315 x64 installation is finished, complete the wizard.

After the configuration wizard is complete you will see the new SharePoint site.

Figure 6. New SharePoint site

New SharePoint site
Step 4: Install Visual Studio 2010 and Developer Documentation

  1. Install Visual Studio 2010 Beta 2 Professional.

  2. Download and install the Microsoft SharePoint 2010 SDK.

Step 5: Create Hyper-V Images from Your Installed System

After you set up a working development environment on a physical host computer, you can store your setup as a virtual computer, so that others can use it, or so that you can reuse this "clean" installation at a later date. Alternatively, you can set up a development environment on a newly created virtual machine. The Hyper-V role in Windows Server 2008 Service Pack 2 provides infrastructure and management tools that enable you to create multiple server environments on a single host. For more information, see Getting to Know Hyper-V: A Walkthrough From Initial Setup to Common Scenarios. For a useful Windows PowerShell script that enables you to create a virtual hard drive (VHD) out of an existing Windows Server 2008 image, see Install-WindowsImage PowerShell Script on MSDN Code Gallery.

If you are using Windows 7, you can also create a VHD on which SharePoint is installed in Windows Hyper-V and then configure Windows 7 with BDCEdit.exe so that it boots directly to the operating system on the VHD. This improves performance because the virtualization layer is not present. It also enables you to use VHD differencing disks (VHDs that contain only elements that differ from a single base installation), which save disk space and make it easier to roll back changes. See Deploy Windows on a Virtual Hard Disk with Native Boot to learn more about this kind of configuration.

If you choose to create a single server installation on a virtual computer, the standard memory requirements still apply. Your virtual computer requires at least 2 GB (preferably 4 GB) of RAM. Virtualization also gives you the opportunity to create a server farm consisting of more than one machine. In a farm installation of SharePoint Server 2010, each machine requires at least 1.5 GB (preferably 2 GB) of RAM. You could run a fully functional domain infrastructure on a setup installation such as the following example installation:

  • Two virtual computers, each with 2 GB of RAM

  • Domain controller and Microsoft SQL Server 2008 running on one computer

  • SharePoint Server 2010 and two Web applications (including Central Administration) running on another computer

See Also

Other Resources

Community Content

Step 8 - Windows Feature install - CMD: start /w ...
Added by:ohdave

When copying the command (start /w...), make sure that you remove the line breaks (e.g. in notepad) before copying to a command prompt. Otherwise just the first line will be executed and not run proberly...

Correction to config.xml file
Added by:Sumit rawat
you config.xml file probably have some invalid characters, this works for me:
<Configuration>
<Package Id="sts">
<Setting Id="LAUNCHEDFROMSETUPSTS" Value="Yes"/>
</Package>

<Package Id="spswfe">
<Setting Id="SETUPCALLED" Value="1"/>
<Setting Id="OFFICESERVERPREMIUM" Value="1" />
</Package>

<Logging Type="verbose" Path="%temp%" Template="SharePoint Server Setup(*).log"/>
<PIDKEY Value="PKXTJ-DCM9D-6MM3V-G86P8-MJ8CY" />
<Setting Id="SERVERROLE" Value="SINGLESERVER"/>
<Setting Id="USINGUIINSTALLMODE" Value="1"/>
<Setting Id="SETUPTYPE" Value="CLEAN_INSTALL"/>
<Setting Id="SETUP_REBOOT" Value="Never"/>
<Setting Id="AllowWindowsClientInstall" Value="True" />
</Configuration>

Cant configure in Standalone mode
Added by:Balaji_Milo
I have installed sharepoint 2010 as mentioned in standalone mode and tried the configuration wizard and I am getting the error

Specified user is a local account and this should be used only in standalone mode.
Additional Install Required
Added by:stefan kowalewski
Before running the SharePoint Products and Technologies Configuration Wizard, you'll need to install another update:

http://blogs.msdn.com/sharepoint/archive/2009/11/19/installation-notice-for-the-sharepoint-server-public-beta-on-microsoft-windows-server-2008-r2-and-microsoft-windows-7.aspx
Error Installing Sample Data
Added by:Kris K
I got an error during configuration phase - it had to with an error installing the sample data. But when I bring up the site, it works fine - haven't tested every bit of functionality. I don't know if I am missing something.
Error Running Configuration Wizard
Added by:Johannes At Work
Before running the configuration wizard sucessfully I had to install HotFix KB976462 available here https://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails.aspx?DownloadID=23806&wa=wsignin1.0 .
Still getting Error on SharePoint 2010 Configuration - Step 8 'Cannot create sample data'
Added by:Catherine Wright
I installed SharePoint 2010 on my Windows 7 machine. When I run the Configuration Wizard, it returns an error on Step 8 'Cannot create sample data'.
I installed the SQL Server Hotfix 970315 and the Windows Hotfix KB976462. I restarted my machine after installing each Hotfix and reran the Configuration Wizard. I am still getting the error. However, when I go to the Central Administration, I am able to create a SharePoint site successfully. How can I get the wizard to complete successfully? What I am missing by not having Step 8 and beyond configured successfully?
Windows 7 Version Required
Added by:James_Carlos
If you are installing on Windows 7 you will need at least Windows 7 Professional x64. Windows 7 Home Premium x64 will not work. To use VHD (Step 5) you will need Windows 7 Enterprise or Ultimate x64 and a CPU that supports virtualization.
Figure 3 in step 9 is incorrect: [ ] WCF Non-HTTP Activation should appear as checked
Added by:Michael Herman - Parallelspace
The checkbox for the WCF Non-HTTP Activation should be checked in the figure. (The script in step 8 is correct.)

Michael Herman
SharePoint Architect
http://mwherman.blogspot.com
Setting up Windows 7 for Office & SharePoint 2010 Beta Development
Added by:Beth Massi
I noticed a few folks were having trouble installing on Windows 7. I wrote up a post that augments the instructions above with specific steps I needed to perform to get it all running smoothly:

http://blogs.msdn.com/bethmassi/archive/2009/12/02/setting-up-windows-7-for-office-sharepoint-2010-beta-development.aspx


HTH,
-B
PowerShell Issues
Added by:joebob23
I had an issue installing the Pre-Requisites for Server 2010 on my Windows Server 2008 x64 box because our standard Windows 2008 build includes powershell v1.0. The Pre-Requisites install is trying to install Windows PowerShell(TM) V2 (CTP3) which apparently does not un-install v1.0 first but won't install with 1.0 installed.
Installing SharePoint 2010 on Vista x64 SP1
Added by:Jesper Simonsen
I followed the above instructions to install SP 2010 on my Windows Vista x64 SP1, but ran into the 'allowInsecureTransport' error at the create sample data pass of the configuration wizard. Unfortunately the KB976462 fix won't install and I'm getting the 'The update does not apply to your system'. Maybe there's missing an fix for Vista x64?

However I managed to complete the wizard by removing the two allowInsecureTransport="true" sentences from the client.config found at "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\WebClients\Profile" thanks to a tip from http://www.mcpblog.net/Lists/Posts/Post.aspx?List=8f2497f6%2De77b%2D4e70%2D8400%2De020b292165c&ID=61. Note that you don't have to uninstall SharePoint, only remove the two lines and then run the wizard again.

Regards, Jesper Simonsen
http://jesper-simonsen.blogspot.com/

Still wont install in Windows Client...
Added by:Anders Skjoenaa
Did all the pre-req work and changed the setup config file. But I am still not allowed to install SharePoint Server on Win7 Ultimate N.

Am I missing something obvious in my config file? Did anyone else struggle with this?

<Configuration>
<Package Id="sts">
<Setting Id="LAUNCHEDFROMSETUPSTS" Value="Yes"/>
</Package>
<Package Id="spswfe">
<Setting Id="SETUPCALLED" Value="1"/>
<Setting Id="OFFICESERVERPREMIUM" Value="1" />
</Package>
<Logging Type="verbose" Path="%temp%" Template="SharePoint Server Setup(*).log"/>
<!--<PIDKEY Value="Enter Product Key Here" />-->
<Setting Id="SERVERROLE" Value="SINGLESERVER"/>
<Setting Id="USINGUIINSTALLMODE" Value="1"/>
<Setting Id="SETUPTYPE" Value="CLEAN_INSTALL"/>
<Setting Id="SETUP_REBOOT" Value="Never"/>
<Setting Id="AllowWindowsClientInstall" Value="True"/>
</Configuration>


/Anders
Compression of C:\Program Files\Microsoft Office Servers must be OFF
Added by:J Tom Kinser
SQL Server or SQL Server Express can not be installed in a compressed folder for SharePoint 2010 installation. Turn off compression for "C:\Program Files\Microsoft Office Servers" and re-install SharePoint 2010.
FileNotFoundException for Microsoft.IdentityModel
Added by:J Tom Kinser
While running the SharePoint Products Configuration Wizard you may receive the error: "Exception: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.IdentityModel, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified." If so, you will need to install the Geneva Framework from http://download.microsoft.com/download/F/3/D/F3D66A7E-C974-4A60-B7A5-382A61EB7BC6/MicrosoftGenevaFramework.amd64.msi and run the wizard again.
Failed to create the configuration Database - SharePoint Foundation 2010
Added by:Damodar Dokuparti
While running Post Setup Configuration Wizard it failed at step 2.

Failed to create the configuration database.
An exception of type System.IO.FileNotFoundException was thrown. Additional exception information: Could not load file or assembly 'Microsoft.IdentityModel, Version=1.0.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=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
File name: 'Microsoft.IdentityModel, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'

Installing "Microsoft “Geneva” Framework Runtime" from the following link addressed this issue.
http://download.microsoft.com/download/F/3/D/F3D66A7E-C974-4A60-B7A5-382A61EB7BC6/MicrosoftGenevaFramework.amd64.msi
Also, following link of Bill Baer is worth looking for any othe installation issues:
http://blogs.technet.com/wbaer/archive/2009/11/18/installation-notes-for-microsoft-sharepoint-server-and-microsoft-sharepoint-foundation-2010-beta.aspx
So how does uninstall / upgrade work here?
Added by:Steve Walch
In particular, I installed the beta using the above method and now I want to move to teh Release Candidate?
Unable to install SP2010 on Windows 7 x64 Ultimate N (With Media Feature Pack installed)
Added by:Chandra.Sekhar
I'm running Windows 7 64bit Ultimate N version. I have Office 2010 Beta and Visual Studio 2010 ENU installed, with IIS configured as required in this document.

I have followed the exact steps described in this document, and all succeeded. But when it comes to running the SharePoint 2010 setup package, I get this error message:

"Setup is unable to proceed due to the following error(s):
This product requires Windows Vista (x64) SP1 or above Business, Enterprise or Ultimate, or Windows 7 (x64) Professional, Enterprise or Ultimate.
Correct this issue(s) listed above and re-run setup."

Can someone please help me get going?
© 2010 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View