错误提示如下:
客户端发现响应内容类型为“text/html; charset=utf-8”,但应该是“text/xml”。请求失败,错误信息为: -- <html> <head> <title>配置错误</title> <style> body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;} p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px} b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px} H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red } H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon } pre {font-family:"Lucida Console";font-size: .9em} .er {font-weight: bold; color: black;text-decoration: none;} .version {color: gray;} .error {margin-bottom: 10px;} .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; } </style> </head> <body bgcolor="white"> <span><H1>“/cjz”应用程序中的服务器错误。<hr width=100% size=1 color=silver></H1> <h2> <i>配置错误</i> </h2></span> <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "> <b> 说明: </b>在处理向该请求提供服务所需的配置文件时出错。请检查下面的特定错误详细信息并适当地修改配置文件。 <br><br> <b> 分析器错误信息: </b>在应用程序级别以外使用注册为 allowDefinition='MachineToApplication' 的节是错误的。导致该错误的原因可能是在 IIS 中没有将虚拟目录作为应用程序进行配置。<br><br> <b>源错误:</b> <br><br> <table width=100% bgcolor="#ffffcc"> <tr> <td> <code><pre> 行 68: 行 69: --&gt; <font color=red>行 70: &lt;authentication mode=&quot;Forms&quot; /&gt; </font>行 71: 行 72: &lt;!-- 授权 </pre></code> </td> </tr> </table> <br> <b> 源文件: </b> D:\CuiJiaZhai\cjzPro\DaYanBusi\web.config<b> &nbsp;&nbsp; 行: </b> 70 <br><br> <hr width=100% size=1 color=silver> <b>版本信息:</b>&nbsp;Microsoft .NET Framework 版本:1.1.4322.573; ASP.NET 版本:1.1.4322.573 </font> </body> </html> <!-- [ConfigurationException]: 在应用程序级别以外使用注册为 allowDefinition='MachineToApplication' 的节是错误的。导致该错误的原因可能是在 IIS 中没有将虚拟目录作为应用程序进行配置。 (D:\CuiJiaZhai\cjzPro\DaYanBusi\web.config line 70) at System.Web.Configuration.HttpConfigurationSystem.CacheLookup(String vpath) at System.Web.Configuration.HttpConfigurationSystem.ComposeConfig(String reqPath, IHttpMapPath configmap) at System.Web.HttpContext.GetCompleteConfigRecord(String reqpath, IHttpMapPath configmap) at System.Web.HttpContext.GetCompleteConfig() at System.Web.HttpContext.GetConfig(String name) at System.Web.HttpContext.GetLKGConfig(String name) --> --.