Namespace Response could not be found?

  • Thread starter Thread starter Bruce W.1
  • Start date Start date
B

Bruce W.1

I whipped up a web service based on this example:
http://www.codeproject.com/aspnet/RSSviaXmlTextWriter.asp?print=true

But my asmx file will not compile. I get this error:
The type or namespace name 'Response' could not be found (are you
missing a using directive or an assembly reference?)

HttpResponse is in System.Web, which my C# codebehind file is 'using'.
So I don't understand why I get this error. Does anyone know?

Thanks.
 
Try using HttpResponse instead. Response is a property of the
System.Web.UI.Page class, and not a class itself.
 
Back
Top