Sharing the goodness…
Beth Massi is a Senior Program Manager on the Visual Studio team at Microsoft and a community champion for .NET developers. Learn more about Beth.
More videos »
So I decided to get my Windows 7 laptop installed with all the latest public Betas this week which includes Visual Studio Beta 2, SharePoint 2010 Beta and Office 2010 Beta. I had been using internal builds and thought it would be better to get in sync with everyone else in the community. I have to say there were a couple bumps that I experienced along the way that had me scratching my head and searching the web so I thought I’d consolidate all the resources I found and document the steps I did which resulted in a successful install. There is a lot of information out there depending on how you want to configure your system and I’m definitely not going to cover all the possibilities, I’m just going to focus on setting up a Windows 7 development environment and what worked for me in hopes of saving some time for other folks out there. As always, your mileage may vary.
NOTE: If you don’t plan on doing any SharePoint development then the install of Visual Studio and Office 2010 should be very smooth. I only experienced issues installing SharePoint 2010 Beta on my Windows 7 development machine. Also be aware that SharePoint 2010 Beta is supported on Windows 7 (and Vista) only for development purposes. So you will still need to have a testing environment built on Windows 2008 Server (or R2). For more information please see, Setting Up the Development Environment for SharePoint Server , SharePoint Deployment, Determine hardware and software requirements and SharePoint 2010 Beta Release Known Issues.
Before you attempt to set up a Windows 7 development environment, I highly recommend booting from VHD. Do yourself a favor and create a Windows 7 bootable VHD so that if you mess up any part of an install you can simply delete it/roll back and start over. There’s a lot of information out there on how to do this but I used these instructions to create a Win7 64-bit VHD via Hyper-V, sysprep-ed it, copied it to my local hard drive, and then used BCDEdit to add the VHD to my boot menu.
Make sure you create a 64-bit Windows 7 Professional or higher edition with at least 4GB RAM if you’re going to do SharePoint development. You'll need Windows 7 Enterprise or Ultimate to boot from VHD.
There are two versions of SharePoint that you can choose to install. It’s recommend that you install SharePoint Foundation (formerly known as WSS) if you only have 4 GB of RAM on your machine because there’s a lot less services running than the Server version (formerly known as MOSS). But if you need all the functionality of SharePoint Server then make sure you have enough of RAM. Just for fun I installed the Server version on my machine with only 4GB and it’s maxed out at 95% so I went with Foundation in the end. :-)
Download Microsoft SharePoint Foundation 2010 Beta here.
Download Microsoft SharePoint Server 2010 Beta here.
Note that you do not need to register or obtain a product key for installing SharePoint Foundation but you do for Server. The Product Key for Server is located at the bottom of the download page after you register (I missed it the first time so make sure you grab that before installing).
Read these instructions carefully: Setting Up the Development Environment for SharePoint Server. These are the instructions you’ll need to follow with a few additions I’ve added below as you go. Now that you’ve got your 64-bit Windows 7 VHD (are logged in as an administrator account) and downloaded SharePoint 2010 Beta you’re ready to proceed to Step 2 in the instructions.
Step 2: Install the Prerequisites for SharePoint 2010
There are a lot of prerequisites that you’ll need to install before you get to actually installing the SharePoint Beta. Follow all the instructions in Step 2 exactly as it says for Windows 7 to install all the prereqs and Windows features. But note that figure 3 in bullet #9 is incorrect. WCF Non-HTTP Activation should appear as checked. The script in bullet #8 is correct, it’s just a problem with the screenshot so don’t get confused.
BEFORE going to Step 3, you will need to install a WCF hotfix as described in this post which fixes an "Unrecognized attribute 'allowInsecureTransport'" error. The WCF hotfix for Windows 7 is available here. After installing this hotfix, reboot.
Now you’re at Step 3 and ready to install SharePoint.
Step 3: Install SharePoint 2010
Follow the instructions listed in this step to install SharePoint until you get to bullet #5. When you get here, you need to download and install the SQL Server 2008 KB 970315 x64 hotfix SQL_Server_2008_SP1_Cumulative_Update_2 build 10.00.2714.00 which you get to by clicking the View and request hotfix downloads link at the top of the KB article.
When installing this though I got the error "Invoke or BeginInvoke cannot be called on a control until the window handle has been created." To resolve it, I closed the all open windows including the SharePoint Configuration wizard (which is sitting open after SharePoint is installed) and then I reran the hotfix. Not sure what is going on here but it looks like it’s a known issue on Win 7 64 according to this post.
After that successfully installed I rebooted again.
Now you need to run the SharePoint Configuration wizard, Start –> Programs –> Microsoft SharePoint 2010 Products –> SharePoint 2010 Products Configuration.
Note to domain users: If you are installing as an administrator but your account is part of a domain, you will need to make sure you have online access to the domain controller! Otherwise configuration will fail on Step 2 with “Exception: Microsoft.SharePoint.SPException: User cannot be found.” This happens even though you select to install the standalone version. This bit me because I was installing on a laptop at home and was not on the corporate domain. I had to start my VPN and then I was good to go, until step 5 that is. ;-)
On Step 5 I ran into another error “Failed to register SharePoint services. An exception of type System.ServiceProcess.TimeoutException was thrown.” This happened when I was installing the Server version and not Foundation. However I found a thread that told me this is related to low memory so I closed some other programs I had running and tried it again and it ran fine. This is why you should make sure you have enough memory before starting. ;-)
You made it! SharePoint 2010 Beta should now be installed. To verify, open your browser to http://<MachineName> and you should be able to start playing with your new SharePoint site.
Everything should be super easy to install now but just in case you may want to save your VHD after you get SharePoint successfully installed ;-).
You’ll need Visual Studio 2010 Beta Professional edition or higher to work with Office & SharePoint. I just picked the whole she-bang, Visual Studio 2010 Ultimate. I used the web installer but you can also choose the ISO package if you want to bring it all down once.
Download Visual Studio 2010 Ultimate (web bootstrapper) (See this page for more download options).
There was no hitch to install all the components of Visual Studio 2010 and .NET Framework 4. It took me about 35 minutes to wait for it to complete with one reboot in the middle. For more information, see the Visual Studio 2010 Beta 2 Readme, Visual Studio 2010 Product Information and Featured Overviews and Walkthroughs.
This one is probably the easiest to install.
Download Office 2010 Beta here.
Scroll to the bottom of the page to get started. You’ll need to register and then you’ll get a product key page with a download button at the bottom. Save your product key and then select the language to download. Note that it says “Download the 32-bit (x86) version:” but the download will include both 32-bit and 64-bit so don’t worry.
Once you click the download button you’ll actually have to install a little download manager to get the setup package. Once you download the package, click on the ProfessionalPlus.exe to start the install. You’ll see a big button “Install Now”. Click that and in about 15 minutes you’ll have Office installed. It doesn’t get much easier than that.
Okay so you want to be able to test these things are all installed and playing happily. In order to develop against SharePoint you’ll need to open Visual Studio as run as Administrator. Next, open the Server Explorer and you should see a SharePoint Connections node. Expand that node and you should be able to browse your SharePoint site.
You should also explore some of the awesome new project templates under the Office > 2010 and SharePoint > 2010 nodes in the File > New Project dialog.
Now it’s time for us to learn how to use these Office and SharePoint tools in Visual Studio! Check out some of my favorite resources:
Office 2010 Development Resources
SharePoint 2010 Development Resources
Great write up... thanks for the tips. For New Year's I'm planning to set up a new SP environment with the Beta's and Windows 7...
Good to hear from you. Good luck with the install. I promice it will be worth it :-)
Great post Beth, I was finding the same issues and your article is helping me to finish the install. Is great to see you are playing with SharePoint (loving it from v2). I know you from the VFP times and I'm looking forward to more of your great advice and clarity.
This couldn't have come at a better time for me.
Over the weekend, I was looking to fix some problems with my desktop computer at home (regarding ACPI and some other stuff that wasn't working), but I had to re-install the OS completely.
I was using XP Pro, and for some strange reason, I couldn't install from the disk. The only other thing I had on hand was Windows 7 x64. I didn't know if I had 64-bit hardware, but I tried it anyway, and it works :-)
Looking to download the VS2010 Ultimate ISO from work now. It just so happens I have a blank DVD in my bag, so I'm really excited :-)
Thanks for all the great advice. I've been looking for a download for VS2010 since I saw your post detailing it's release.
Good call on booting from VHD before setting up Windows 7! Last thing you want is incompatibility issues. I may mention this in my blog...
Great article Beth. Until this morning, I was able to say I got the install up and running perfectly. Sadly, when I tried to add a new search content source (http://[MYSRVR]/searchadministration.aspx?appid=e5cf4529-0b3e-4a24-89a7-403d655d4b9f), I get an error that I don't know what to do with:
System.InvalidOperationException: The search service is not able to connect to the machine that hosts the administration component. Verify that the administration component '502ec350-e2d2-4721-bb4b-b2ad79c43d88' in search application 'Search Service Application' is in a good state and try again.
Have you encountered this problem? It seems like just about all pages under the Search Service Application > Search Administration heading are similarly broken on my install.
Just wanted to pass along my sincere thanks for your excellent guidance in setting up an SP2010 development environment! Thanks to you, I now have both Foundation and Server VHDs fully loaded and ready for use.
Please keep up the great work!
TX a lot Beth, this saved me such an amount of time!!!
As you wrote; I was also installing from home and not through VPN.
Hi Beth, Whether can I install Sharepoint wiith out any domains? I mean in workgroup as a administrator in windows 7. Please help its very urgent!!!
Apparently it's possible but trickey. Check out:
Thanks for your valuable feedback. I still face problems while installing sharepoing 2010 on windows 7 Ultimate N edition. I have completed all my steps untill install sharepoint 2010. After when I went to cmd and typed c:\sharepoint2010\setup.exe, it throws me an error saying "SETUP HAS STOPPED WORKING, A PRODUCT CAUSED THE PROGRAM TO STOP WORKING CORRECTLY. WINDOWS WILL CLOSE THE PROGRAM AND NOTIFY YOU IF A SOLUTION IS AVAILABLE" pls help me in this regards as soon as poosible.
Apparently that edition of Windows 7 is not supported. Check out:
You may also want to use the sharepoint forums to post more quesitons, I'm not an installation expert.
To pick up where Sarvesh left off... I have completed the pre-install without error. I ran then sharepoint foundation setup without error. I am admin on my local machine. I ran the config mgr.... without error. When I open the sharepoint site, i get a 503 service not found error. Check the link you sent Sarvesh, it says to read the install steps before trying... in the orginal setup steps, it says you just need to be admin of the machine.
So before I reinstall everything as a farm, is that what needs to be done?
Thanks, Any help will be very helpful.
This is an old post about how I installed the beta versions of SharePoint and Office and what worked for me. Since the release things have changed and the docs were updated. See msdn.microsoft.com/.../ee554869.aspx
Please use the sharepoint forums to post more quesitons, I'm not an installation expert.
Hi! I had previously followed instructions on the msdn site to install SharePoint 2010 on my Windows 7 machine. Everything actually went smoothly and I can see my SharePoint page and Central Administration. The only problem I am having is that almost any link that I click in Central Administration asks me for credentials; but even after entering them correctly I get an "Access Denied" message. Any suggestions?