Sunday, April 11, 2010

Setup MOSS 2007 64-bit development environment

Here i have explained the steps to setup MOSS 2007 development environment on 64-bit operating system. I have chosen Windows 2008 with SQL Server 2008.

- Install Windows 2008 and enable Web Server (IIS) Role
- Enable necessary port (required in Windows 2008)

- Install SQL Server 2008
- Prior installing the SharePoint 2007, first download Following:
- WSS 2007 - Service Pack 1 (filename: wssv3sp1-kb936988-x64-fullfile-en-us.exe)
- Office Server - Service Pack 1 (filename: officeserver2007sp1-kb936984-x64-fullfile-en-us.exe)
- Extract it using following command and copy in "Updates" folder inside SharePointServer2007 installation
'wssv3sp1-kb936988-x64-fullfile-en-us.exe /extract:c:\'

- Install MOSS 2007
- If required then install WSS and Office Server Language Pack and Language Pack Service Packs

- Run 'SharePoint Products and Technology Configuration Wizard' now
- Install Visual Studio 2008, remember Visual Studio only available in 32-bit
- While Working on SharePoint solutions you need to consider that SharePoint 64-bit files cant load inside Visual Studio Debugger. To debug SharePoint solution, i have figure out a dirty workaround. I copied the SharePoint 32-bit files on my machine and use it while adding Reference in my project. Also if you are debugging then after compilation you need to copy 32-bit files in your working project BIN folder.
- Also if you are Referencing 32-bit files in your website then you need to enable following attribute in IIS:
- Open IIS Manager
- Select your website Application Pool and click Advance settings
- make 'Enable 32-bit Applications' to true

Please provide your comments in case your are getting any issue while configuring this.