.NET not processing an XML file in IIS

Posted by Stuart McIntosh on Server Fault See other posts from Server Fault or by Stuart McIntosh
Published on 2012-09-08T08:04:22Z Indexed on 2012/09/08 9:40 UTC
Read the original article Hit count: 334

Filed under:
|
|

We have 2 servers, 1 already configured with .net which works fine and a new one which appears to be configured the same but when I open an xml page in Internet Explorer it complains about the <% tag.

We have IIS on win srvr 2003 SP2. The website is configured with .NET 1.1.4322. In ISAPI extensions have set the .XML extension to use c:\windows\microsoft.net\framework\v1.1.4322\aspnet_isapi.dll

But the page:

<property name="documentmaxage" value="0"/>
<property name="documentmaxstale" value="0"/>
<var name="m_Prompt_Path" />

<form id="InitVoiceXmlDoc">
    <block>
        <assign name="m_Prompt_Path" expr="&quot;<% Response.Write(Request.QueryString["m_Prompt_Path"]); %>&quot;"/>
    </block>
</form>

gives the error:

The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.


The character '<' cannot be used in an attribute value. Error processing resource 'http://localhost:11119/fails.xml'. Lin...

&quo...

We have the same config on another server which works fine. So are there other options apart from the ISAPI extensions that I need to look at.

If I suffix the page .aspx, of course it works fine.

© Server Fault or respective owner

Related posts about Windows

Related posts about iis