# WinForm 使用 HttpUtility 沒有 System.Web.dll? * 在Visual C# 中使用HttpUtility 是無效的 * 即使添加了命名空間`System.Web`,是因為需要在引用中添加System.Web.dll * 可是沒有System.Web.dll * 檢視-->方案總管-->參考-->加入參考-->System.Web打勾-->確定 ![](https://i.imgur.com/Lg7S1Ab.png) ![](https://i.imgur.com/9URCDsN.png) ```C# using System.Web; namespace test { public class Http { HttpUtility httpUtility = new HttpUtility(); } } ``` ###### tags: `C#` `WinForm`