Saturday, February 14, 2009

Configure ASP.NET 2.0 on x64 IIS web server

One of the troubling issues of allowing the Configure Your Server wizard is that is never seems to properly register ASP.NET 2.0 as an allowable extension, on a x64 system you need to make sure to change your path to reflect the following:

"%windir%\Microsoft.NET\Framework64\v2.0.50727\aspnet_regiis.exe" -i

Friday, February 13, 2009

Virtualbox 2.2.1 clone a virtual machine

I recently upgraded to Sun's VirtualBox 2.2.1 and was running into issues trying to clone my base machine running Server 2003. I am using the x64 bit edition of Windows Vista and wanted to try out the x64 bit edition of VirtualBox. After downloading and setting everything up I built my first server and applied all the updates/patches that were needed and proceeded to try and clone the .vdi file in order to spawn the rest of my servers for my virtual SharePoint 2007 development enviroment.

Under normal circumstances you can open a cmd window and browse to the VirtualBox directory in Program Files and run the command from there. HOWEVER I do not keep my virtual machines in the default location because I need to take my machines with me to work, so they sit on an external drive. This causes a problem because VirtualBox expects the .vdi files to be in your My Documents\.VirtualBox folder.

After spending a few hours of having issues with this I created a .bat file with the following code:

"c:\program files\sun\xvm virtualbox\vboxmanage.exe" clonevdi "e:\vms\svr2003\2003baseline.vdi" "e:\vms\MOSS2007\svr2003_MOSS_1.vdi"

This .bat file can be run from anywhere on your computer because the path to the vboxmanage is built into the script. You can modify the script each time you run it to create a new machine by editing the last part of the script.

WARNING: do NOT attempt to create multiple clones at once because you will spend hours waiting for it to finish up. Otherwise have fun!