The full error is
The base class includes the field \'ScriptManager1\', but its type (System.Web.UI.ScriptManager) is not compatible with the type of
You can also solve this problem in the .vbproj file (in my case). Check for these entries:
3.5 3.5
This seems to also force the use of the 3.5 version DLLs.