“text/html; charset=utf-8”,但应为“text/xml”。

huang02042171 2007-07-16 09:45:42
客户端发现响应内容类型为“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}
.marker {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>“/Web”应用程序中的服务器错误。<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>未能加载文件或程序集“Web”或它的某一个依赖项。系统找不到指定的文件。 (E:\Web\web.config line 27)<br><br>

<b>源错误:</b> <br><br>

<table width=100% bgcolor="#ffffcc">
<tr>
<td>
<code><pre>

行 25: -->
行 26: <httpModules >
<font color=red>行 27: <add name ="AuthModule" type ="Web.Authenticator,Web"/>
</font>行 28: </httpModules>
行 29: <authentication mode="None"/></pre></code>

</td>
</tr>
</table>

<br>

<b> 源文件: </b> E:\Web\web.config<b> 行: </b> 27
<br><br>
什么意思啊
是哪出错了啊
谢谢
...全文
1368 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
yuanjiacai 2008-11-03
  • 打赏
  • 举报
回复
IIS禁了对( .asmx)后缀的访问权限.

12,162

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 Web Services
社区管理员
  • Web Services社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧