Installing .Net 3.5.1 on Windows 2008 R2

Sometimes when you try to install .Net 3.5 on Windows 2008 R2, you would get an error message:

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

To get around this, right click on computer, select manage.  Select Server Feature node and add a new feature.  The first one on the list should be .NET 3.5 Features.  Install that and voila.