After upgrade, responses are text/html instead of text/xml

JonRockypence

New Member
I have several projects that I just upgraded from Visual Studio 2003 and ASP.NET v1 to Visual Studio 2008 and ASP.NET v2. I am explicitly setting a type of "text/xml", and that used to be fine, browsers would render it as xml and IE would even put the cute little +/- signs next to each tag. After the upgrade, IE is rendering only the element content and is ignoring all the tags as if the content was html.\[code\] Response.ContentType = "text/xml"; String resp = "<soap:Envelope>...blah, blah, lots of xml...</soap:Envelope>\n"; Response.Write(resp);\[/code\]I did the upgrades because someone (literally) hosed down our server and it had to be rebuilt, so in the process, we went from IIS 5.1 to IIS 6.0.Anyone know how to fix this problem? TIA.
 
Back
Top