In order to install .NET 4.0 you need to download and install the stand alone installation found here;

 

http://www.microsoft.com/download/en/details.aspx?id=17718

How do I install .NET Framwork 4.0?