1

I'm following the advice in this post so that I can reference the HttpPostedFileBase class in a C# project. But when I add the System.Web.Abstractions.dll reference to my project the compiler still doesn't recognize System.Web.HttpPostedFileBase. When I go to the Class View > Project References > System.Web.Abstractions and click the triangle next to the dll I see no namespaces below it. It's appears as if my System.Web.Abstractions.dll is void of any content.

The path for the dll is C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.0\System.Web.Abstractions.dll.

Any ideas?

Community
  • 1
  • 1
sisdog
  • 2,649
  • 2
  • 29
  • 49

1 Answers1

1

You need to add reference to the System.Web assembly which is where the HttpPostedFileBase class is defined in .NET 4.0.

Darin Dimitrov
  • 1,023,142
  • 271
  • 3,287
  • 2,928
  • You know what, I've been looking at this for almost an hour and of course I found it right after I posted it. But thanks, you're right. – sisdog Oct 26 '11 at 06:33