Saturday, July 31, 2010

Enable IntelliSense for SharePoint Client Object Model in Visual Studio 2010

Microsoft released some guidance on enabling intellisense for the SharePoint client object model and was disappointed, it only gave partial intellisense. After a bit of investigating, I found that there are a number of debug.js files in the layouts folder. Adding the SP.Core.debug.js file gave me the result I was looking for. 

<script type="text/javascript" src="/_layouts/MicrosoftAjax.js" ></script>
<script type="text/javascript" src="/_layouts/SP.debug.js" />
<script type="text/javascript" src="/_layouts/SP.Core.debug.js" />


Sunday, July 25, 2010

Table of Contents Web Part

The table of contents web part isn't showing all the sites. Go to site settings, navigation and increase the number of sites to display.

Thursday, July 22, 2010

Windows 2008R2 boot VHD

I was in need of a faster SharePoint 2010 development environment and saw some posts on booting from a vhd and decided to give it a try. I'm running Windows 7 ultimate on my laptop and will install Windows 2008 R2 on the vhd. The first thing I tried was converting my virtualbox hard drive. Big waste of time, the conversion from vdi to vhd just didn't work. So, it was time to create a new vhd and install everything all over again. In this post I'll go thorough the steps to create a new vhd and install Windows 2008R2 on to it.

Change the bios settings on your machine so the dvd will boot before the hard drive.

Boot your machine from the install dvd. Oh, you don't have an install dvd, you have an iso file don't you? So you need to create an install dvd from the iso file. It's not so bad. Use a utility like ImgBurn to unpack the image file to disk, you'll see all the setup files when your done. 

Boot your machine from the install dvd. Select your language and click next.


Go to the command prompt  - enter shift+F10
x:\sources > diskpart
diskpart > create vdisk file=c:\win2008r2.vhd maximum=40000 type=expandable
diskpart > select vdisk file=c:\win2008r2.vhd
diskpart > attach vdisk
diskpart > exit
x:\sources > exit

Install the operating system - you will be able to select your new vhd later.

Select the disk you just created, there will be more than one to choose from. Choose carefully. Ignore the warning that you can't use the disk.

Continue with the installation. 

When the installation is finished, remove the dvd from the drive and restart your machine. You will be able to choose between Windows 7 and Windows 2008R2.