我们有2台服务器,其中1台已经configuration好了.net工作正常,而且新的configuration看起来是一样的,但是当我在Internet Explorer中打开一个xml页面时,它抱怨<%标签。
win srvr 2003 SP2上有IIS。 该网站使用.NET 1.1.4322进行configuration。 在ISAPI扩展中,将.XML扩展名设置为使用c:\ windows \ microsoft.net \ framework \ v1.1.4322 \ aspnet_isapi.dll
但是页面:
<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=""<% Response.Write(Request.QueryString["m_Prompt_Path"]); %>""/> </block> </form>
给出错误:
无法显示XML页面无法使用XSL样式表查看XMLinput。 请更正错误,然后单击“刷新”button,或稍后重试。
字符“<”不能在属性值中使用。 处理资源“ http:// localhost:11119 / fails.xml ”时出错 。 林…
&现状……
我们有相同的configuration在另一台服务器上工作正常。 那么除了我需要看的ISAPI扩展之外,还有其他的select。
如果我后缀页面.aspx,当然它工作正常。