While .Net 4 is still Beta, it is also from what I understand add-on assemblies, which adds to the base .Net 2.0 Frameworks and up. HttpUtility class is from System.Web.dll which is a .Net 2.0 assembly and I don't think that has changed. I think you have simply not added reference to System.Web.dll.