Run aspnet_regiis -i. Often I've found you need to do that to get 4.0 apps to work. Open a command prompt:
cd \
cd Windows\Microsoft .NET\Framework\v4.xxx.xxx
aspnet_regiis -i
Once it has installed and registered, make sure you application is using an application pool that is set to .NET 4.0.