Trying to develop a C# ASP.NET application that returns pure XML in response to a standard HTTP GET request to an IIS server (IIS 6, on XP Pro - workstation here @ work).
I've tried putting Response.Headers.Set("Content-Type", "text/xml"); in the Page_Load method, and <% Response.Headers.Add("Content-Type", "text/css"); %> in Default.aspx, but both give me the same error: This operation requires IIS integrated pipeline mode.
Google searching seems to indicate that 'integrated pipeline mode' is part of IIS 7, and not 6. However, I don't have (and ain't gonna be getting) IIS 7 anytime soon, and I'm *sure* that people have changed content-type headers...but I can't figure out how to do it. HELP!!!! (PLEASE????) |