The World’s Leading Microsoft .NET Magazine
   
 
The .NET Addict's Blog

My Top Tags

                                                           

My RSS Feeds








Latest Diggs - Programming

Internet Blogs - Blog Top Sites

Site Hits

Total: 2,551,710
since: 19 Jan 2005

Setting up your SharePoint 2007 Development Environment

posted Tue 09 Jan 07

One of the problems with SharePoint development quite simply: you need SharePoint in order to develop. There is always the scenario where you take the DLLs from the SharePoint server, copy them to your XP machine and you tinker around until you get something manageable. I knew people that did this very thing, and they had extremely complex batch files that would deploy from their development machine, then they'd go to the SharePoint server, run iisreset, hit refresh, pray, and then wonder why they had so much trouble debugging.

First and foremost, you need Windows Server 2003 R2. If you can spare a physical box then that's an ideal situation just because of the sheer amount of crap you're going to install on this server, but I have used VMware and Virtual PC as well. If you're going the virtualization route, VMware seems to be the more robust solution and also seems to run much faster than VPC (and no, I don't work for VMware :)).

Second - install Microsoft SQL Server 2005 Developer Edition. You don't need to install Analysis Services or Reporting Services, but you might find yourself using Notification Services or the Service Broker at some point, so install Notification Services.

Thirdly, you need Microsoft Office SharePoint Server 2007. Don't bother installing WSS v3.0 without MOSS. As a developer, you want the full boat, and you'll need it for all the powerful enterprise features like Excel Services, the Business Data Catalog, etc. When you install this, do not install the standalone copy. You want to create a single-server farm and point your content and configuration databases at the SQL Server instance. The reason for this is that MOSS running on top of MSDE is quite possibly one of the most horribly performing application combinations I've ever seen, and your dev environment will screech to a grinding halt in Standalone mode.

Next, you need Visual Studio 2005 - at least Professional, but if you've got an MSDN subscription you might as well install the full boat. Also, if you're doing this for your company, you might want to consider installing the TFS client so you can check your SharePoint code in and out of Team Foundation Server. That's right - I actually said there was a good way of source-controlling SharePoint code - something that has been lacking in all previous versions of it.

So, to recap, setting up your development environment involves the following, in this order:

  1. Prep your environment - either set up your VM or format your physical box
  2. Install Windows Server 2003 R2 , make sure you include the latest service pack
  3. Configure your server as an application server
    1. Install IIS
    2. Install the SMTP service
  4. Install Microsoft SQL Server 2005 Developer Edition
  5. Install Microsoft .NET Framework 3.0 runtime. Feel free to install the SDK too.
  6. Install Microsoft Office SharePoint Server 2005 not in standalone mode!!!
  7. Install Microsoft Visual Studio 2005
  8. Optionally install the Team Explorer client to allow you to get source control access for all your SharePoint code
  9. Install the SharePoint Extensions for WSS v3.0 from Microsoft. These will give you VS templates for web parts that are priceless for Web Part developers, as well as some stuff for doing solutions, features, and even site definitions. Get these!
  10. Install the Enterprise Content Management Starter Kit from Microsoft. Its not currently available in anything other than beta 2 format, but it should be released any day now. This is the toolkit that contains the VS 2005 templates for creating real workflows, not the one-off instanced workflows you create with SharePoint Designer 2007.

You will also want to find some migration path from your environment to a staging or testing environment, but the rest of those details are specific to your organization and your environment. If you create your SharePoint environment using the preceding steps and resign yourself to knowing the fact that you will be developing on Windows Server 2003 for all of your SharePoint work (unless you're doing Web Services, in which case any client environment will do) - then you should be off and running.

Now all you need is a good book to teach you everything you need to know about SharePoint programming :) *hint* *nudge* *wink*

 

kick it on SharePointKicks.com

tags:                

links: digg this    del.icio.us    technorati    reddit




1. Siva Phimister left...
Thu 11 Jan 07 6:51 am

Great tips. Have just placed an order for your book on Amazon UK. Can't wait to get the book. Many thanks.


2. Bob left...
Mon 22 Jan 07 2:54 pm

Why do you say "First and foremost you need, you need Windows Server 2003 R2." What is the benefit of R2 over SP1 to MOSS? Is there a real need?


3. Kevin Hoffman left...

R2 is a pre-requisite. You cannot install MOSS on a non-R2 version of Windows Server 2003 because R2 is the version that enables .NET Framework 2.0 support for WSS v3, upon which MOSS is built.


4. Matt J left...
Tue 23 Jan 07 10:37 am

How would you set up a development environment with multiple developers? Obviously we need the ability to work independently (in the environment you outlined above) but then combine our changes on a central server. Any ideas on how to move content from several development servers into a single SharePoint instance?


5. Howard left...
Fri 26 Jan 07 2:03 am

Can you run MOSS 2007 on SBS 2003 r2 premium w/ sql workgroup edition?


6. Kevin Hoffman left...

you can use something like TFS to centrally manage your code. If you are using the WSS v3 extensions for Visual Studio, you'll notice that when you deploy the solution to your local server, it creates a setup.bat file that does the deployment.

You can modify this file and do some scripting/automation to deploy your stuff remotely. Its a pain, but that's the best we've got so far. I'm really dissapointed that the VS extensions don't support remote deployment.


7. Andy left...
Tue 30 Jan 07 9:47 am

I am not able to install sharepoint extension for VS 2005. I got the "unexpect error and send report to Microsoft" message. Any Tips for that?

Thanks


8. Andy left...
Fri 02 Feb 07 4:22 am

You Wrote: R2 is a pre-requisite. You cannot install MOSS on a non-R2 version of Windows Server 2003 because R2 is the version that enables .NET Framework 2.0 support for WSS v3, upon which MOSS is built.


9. Avner Kashtan left...
Tue 06 Feb 07 9:14 am :: http://weblogs.asp.net/avnerk

I have MOSS 2007 installed on a Win2003 machine, not Win2003R2. I simply installed .NET FW 2.0 before installing Sharepoint and it worked like a charm.


10. Ken left...
Wed 14 Feb 07 8:35 am

I looked at the book description on Barnesandnobel.com. It looks like programming focuses on C#. Is there a good resource for those of us that are VB.net trained and want to do SharePoint development????


11. Sharepointer left...
Tue 20 Feb 07 11:02 am :: http://www.sharepointer.ch

Thanks for the really good tips. Always good to hear this kind of things from someone who has already been to this place I'm in.


12. MOSS Installer left...
Mon 26 Feb 07 10:00 am

Actually, R2 is NOT REQUIRED to run MOSS. As long as the .Net framework 2.0 and 3.0 are installed, you're ready to go. I have installed MOSS about 10 times to Windows Server 2003 SP1 just fine.


13. Kevin Hoffman left...

Well, R2 was a requirement during all of the beta phases, and I just never read anything to the contrary since release.


14. Tina left...
Thu 24 May 07 10:03 am

What about licensing? I can't imagine that you need a server license for each developer.


15. Kevin Hoffman left...
Thu 24 May 07 10:07 am

Well, if you are developing for SharePoint, then all of your developers should be covered under their MSDN subscription license. Once you get into production mode, then you need a server license, and then you need a CAL (Client Access License) for each person using the system. If you've got a Microsoft rep or licensing reseller, talk to them about the licensing plans because Microsoft has different options for organizations of different sizes.


16. sharedot left...
Wed 03 Oct 07 8:51 pm

Can I access user profile from an asp.net application? My application is running on the same server as SharePoint Server 2007 and I am using object model to access user profiles. It give me unauthorized access error. How can I solve this? Please help.....


17. Carl Drehlich left...
Tue 23 Oct 07 12:19 am

Try this on a laptop with a virtual machine, its taken me all day! hopefully I can convince the IT manager to let me use the Dev Server when I show him what we can do :)


18. Jonas left...
Wed 21 May 08 9:25 pm

Now you can install WSS 3.0 SP1 on Vista

http://community.bamboosolutions.com/blogs/bambooteamblog/archive/2008/05/2 1/how-to-install-windows-sharepoint-services-3-0-sp1-on-vista-x64-x86.aspx


19. Sri left...
Fri 30 May 08 3:30 am

Can we use MOSS2007 On windows XP. Is it necessary that we need WindowsServer2003 installed in our system for developing share point applications.Can anybody clarify me? Thanks in advance


Tag Related Posts

MobileMe vs. Live Mesh Throwdown - Round 1

Wed 16 Jul 08 10:33 A GMT-05

NYC SharePoint Developer Needed

Mon 12 May 08 12:09 P GMT-05

One Framework to Rule them All

Mon 25 Feb 08 6:49 P GMT-05

The iPhone SDK key has been leaked! Oh Noez!!!1

Tue 29 Jan 08 11:36 A GMT-05
tags:        

I got on the endcap baby!

Sun 10 Jun 07 1:06 A GMT-05
tags:      

My Little Pony .NET Unleashed 2007

Fri 30 Mar 07 1:59 P GMT-05

Authorness

Thu 15 Mar 07 1:44 P GMT-05

ASP.NET vs Ruby on Rails : Round 2 (Agility)

Thu 05 Oct 06 11:02 A GMT-05
tags:                      

ASP.NET vs Ruby on Rails : Round 1

Wed 04 Oct 06 1:37 P GMT-05
tags:                

First Impressions of Windows Vista RC1

Thu 07 Sep 06 1:30 P GMT-05
tags:                      

Localizing a WPF Application

Tue 22 Aug 06 11:39 A GMT-05
tags:            

WPF Slide Show and Photo Album

Fri 18 Aug 06 6:48 P GMT-05

Is Windows Workflow Foundation Too Complex?

Fri 18 Aug 06 12:15 P GMT-05

Tech-Ed 2006 Day 1 - Registration Day

Sun 11 Jun 06 7:17 P GMT-05

Lambda Lambda Lambda

Sun 21 May 06 1:01 A GMT-05

The Adventures of LINQ (Not Zelda)

Fri 19 May 06 11:21 P GMT-05
tags:          

What is an apologist?

Mon 01 May 06 12:37 A GMT-05