Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
供您参考,我的目标是 .NET Framework 4.5,因此不应该存在客户端配置文件问题。但我仍然无法在参考中找到它。
在项目的引用中,添加对 System.Web 的引用
然后在您的程序中使用:
using System.Web.Hosting;