For your information, I am targeting .NET Framework 4.5 so there shouldn't be a client profile problem. But I still can't find it in the reference.
In references for your project, add a reference to System.Web
then in your program use:
using System.Web.Hosting;
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.