Hello Dave,
As for the httphandler issue, I remember that you've ever posted a similiar
issue about rendering out some certain content in httphandler and encounter
error. Is this similar to that one? Yes, the txt file's mime type is
"text/plain".
I'm not sure about your detailed code logic, here is a simple test
httphandler which flush out some txt content:
===================
public void ProcessRequest(HttpContext context)
{
context.Response.Clear();
context.Response.ClearHeaders();
context.Response.ClearContent();
context.Response.Write("Hello World.");
context.Response.End();
}
==================
BTW, are you using the generic handler ( the ashx ) in VS 2005? If so, this
could be causing some problem since the generic handler may add some
additional content info internally that cause any non-xml/xhtml content
display error at client browser. You can test through a typical custom
httphandler (register in the web.config <httpHandlers> section) to see
whether it works.
If you meet any further problem, please feel free to post here.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial
response from the community or a Microsoft Support Engineer within 1
business day is
acceptable. Please note that each follow up response may take approximately
2 business days
as the support professional working with you may need further investigation
to reach the
most efficient resolution. The offering is not appropriate for situations
that require
urgent, real-time or phone-based interactions or complex project analysis
and dump analysis
issues. Issues of this nature are best handled working with a dedicated
Microsoft Support
Engineer by contacting Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.