System.Web.Abstractions dll缺少HttpPostedFileBase类

时间:2011-10-26 06:26:52

标签: c# dll reference

我正在遵循this post中的建议,以便我可以在C#项目中引用HttpPostedFileBase类。但是当我将System.Web.Abstractions.dll引用添加到我的项目时,编译器仍然无法识别System.Web.HttpPostedFileBase。当我进入课堂视图>项目参考> System.Web.Abstractions并单击dll旁边的三角形,我看不到它下面的命名空间。它看起来好像我的System.Web.Abstractions.dll没有任何内容。

dll的路径是C:\ Program Files(x86)\ Reference Assemblies \ Microsoft \ Framework.NETFramework \ v4.0 \ System.Web.Abstractions.dll。

有什么想法吗?

1 个答案:

答案 0 :(得分:1)

您需要添加对System.Web程序集的引用,该程序集是.NET 4.0中定义的HttpPostedFileBase类。