Monthly Archives: February 2011

Using Visual Studio 2008 With Visual Studio Team Foundation Server 2010

In order to use Visual Studio 2008 With Visual Studio Team Foundation Server 2010, you need to follow the steps below in the following order:

  1. Install Visual Studio 2008
  2. Install Team Explorer 2008
  3. Install Visual Studio 2008 SP1
  4. Install Visual Studio 2008 Forward Compatibility Update for Team Foundation Server 2010

 

 

 

Advertisements

Value does not fall within the expected range

When running a WPF click once application from a network drive, I got the error “Value does not fall within the expected range” .  The reason for the error was an “&” in the name of the folder that contained the application.

Cleanup Windows 7 and Windows Server 2008 R2 SP1 Backup Files

If you’ve installed service pack 1 for Windows 7 or Windows Server 2008 R2 and you’re happy you won’t need to uninstall it, you can cleanup the service pack backup files by running the command below from an elevated command prompt.  This uses the Deployment Image Servicing and Management (DISM) tool

DISM.exe /online /Cleanup-Image /spsuperseded

The command freed 1.6GB on my Windows 7 desktop and 1.8GB on a Windows Server 2008 R2 Std server.

You can do the same for Windows Vista with vsp1cln.exe for service pack 1 and compcln.exe for service pack 2.

Incorrect Screen Resolution When Resuming From Sleep With Windows Media Center

I’ve used Windows Media Center as my main way of watching TV since Windows Vista.  In fact, other than on demand, e.g. iPlayer etc. it’s the only way to watch TV in my house.  I’m now using it with Windows 7 and until recently I’ve always had an issue with sound and screen resolution when resuming from sleep.  My HTPC has a GA-MA78GM-S2H (rev. 1.0) motherboard (AMD chipset) and is connected to a Panasonic LCD via HDMI.  I found that when resuming from sleep at least half the time there was no sound on the TV, or the screen resolution had reverted to 4:3, rather than 16:9.  No matter which order I turned the TV and HTPC on and off, or which drivers I used, I couldn’t resolve the issue, until now.  For the last two weeks every time I’ve used my TV, which is at least once a day, the screen resolution has been correct when and the TV has always had sound when resuming from sleep.  This is how I fixed it:

  • Resume the computer from sleep and turn on the TV as usual.
  • If the screen resolution is incorrect, navigate within the Media Center interface to Tasks -> Settings -> TV -> Configure Your TV or Monitor.
  • Continue through the wizard selecting your display type, connection type and display width until you get to a screen where Media Center asks you to confirm your display resolution.  In my case it said “Current resolution: 1024 by 768 pixels This resolution does not appear correct.”  Choose not to keep the current display resolution.
  • From the list that appears select the correct  resolution for your TV.
  • Finish the wizard.

Hopefully, you’ll always have the correct screen resolution from now on.

You must use the Role Management Tool to install or configure Microsoft .NET Framework 3.5

If you try to install the Microsoft .NET Framework 3.5 on a Windows Server 2008 R2 server, you’ll get the error “You must use the Role Management Tool to install or configure Microsoft .NET Framework 3.5”.  This is because the Microsoft .NET Framework 3.5 is already installed, you just need to enable the feature.

Open Server Manager, navigate to Features, click Add Features and tick .NET Framework 3.5.1 Features. Click Next to install.