Even though you have removed Silverlight 4, it's possible that you need to remove the underlying registry keys. Basically, if I remember right, you need to remove the following keys:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\4.0
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\ToolsVersion\4.0