!!问题:请教

liqm 2003-03-31 09:08:40
调试通过,运行出现报错如下,请教原因,紧急!!谢谢:
未处理的“System.InvalidOperationException”类型的异常出现在 system.web.services.dll 中

其他信息:客户端发现响应内容类型为“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>“/WebService2”应用程序中的服务器错误。<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>找不到文件或程序集名称“System.Web”,或找不到它的一个依赖项。<br><br>

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

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

行 67: -->
行 68: <httpHandlers>
<font color=red>行 69: <add verb="*" path="*.vb" type="System.Web.HttpNotFoundHandler,System.Web" />
</font>行 70: <add verb="*" path="*.cs" type="System.Web.HttpNotFoundHandler,System.Web" />
行 71: <add verb="*" path="*.vbproj" type="System.Web.HttpNotFoundHandler,System.Web" /></pre></code>

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

<br>

<b> 源文件: </b> d:\inetpub\wwwroot\WebService2\web.config<b>    行: </b> 69
<br><br>

<b>程序集加载跟踪:</b> 下列信息有助于确定程序集“System.Web”无法加载的原因。<br><br>

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

=== Pre-bind state information ===
LOG: DisplayName = System.Web
(Partial)
LOG: Appbase = file:///d:/inetpub/wwwroot/WebService2
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===

LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Post-policy reference: System.Web
LOG: Attempting download of new URL file:///D:/WINNT/Microsoft.NET/Framework/v1.0.3705/Temporary ASP.NET Files/webservice2/388f40a2/873fd180/System.Web.DLL.
LOG: Attempting download of new URL file:///D:/WINNT/Microsoft.NET/Framework/v1.0.3705/Temporary ASP.NET Files/webservice2/388f40a2/873fd180/System.Web/System.Web.DLL.
LOG: Attempting download of new URL file:///d:/inetpub/wwwroot/WebService2/bin/System.Web.DLL.
LOG: Attempting download of new URL file:///d:/inetpub/wwwroot/WebService2/bin/System.Web/System.Web.DLL.
LOG: Attempting download of new URL file:///D:/WINNT/Microsoft.NET/Framework/v1.0.3705/Temporary ASP.NET Files/webservice2/388f40a2/873fd180/System.Web.EXE.
LOG: Attempting download of new URL file:///D:/WINNT/Microsoft.NET/Framework/v1.0.3705/Temporary ASP.NET Files/webservice2/388f40a2/873fd180/System.Web/System.Web.EXE.
LOG: Attempting download of new URL file:///d:/inetpub/wwwroot/WebService2/bin/System.Web.EXE.
LOG: Attempting download of new URL file:///d:/inetpub/wwwroot/WebService2/bin/System.Web/System.Web.EXE.
</pre></code>

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

<br>

<hr width=100% size=1 color=silver>

<b>版本信息:</b> Microsoft .NET 框架版本:1.0.3705.0; ASP.NET 版本:1.0.3705.0

</font>

</body>
</html>
<!--
[FileNotFoundException]: 找不到文件或程序集名称“System.Web”,或找不到它的一个依赖项。
at System.Type.GetType(String typeName, Boolean throwOnError)
at System.Web.Configuration.HandlerMapping..ctor(String requestType, String path, String typeName, Boolean defer)
at System.Web.Configuration.HttpHandlersSectionHandler.InternalCreate(Object parent, XmlNode node)
[ConfigurationException]: 找不到文件或程序集名称“System.Web”,或找不到它的一个依赖项。 (d:\inetpub\wwwroot\WebService2\web.config line 69)
at System.Web.Configuration.SectionRecord.get_Result()
at System.Web.Configuration.HttpConfigurationRecord.GetConfig(String configKey, Boolean cacheResult)
at System.Web.HttpApplication.GetHandlerMapping(HttpContext context, String requestType, String path)
at System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, String path, String pathTranslated, Boolean useAppConfig)
at System.Web.MapHandlerExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
-->
/////////////////////
出问题部分如下:
public bool Login(string userid, string password) {
object[] results = this.Invoke("Login", new object[] {
userid,
password});
return ((bool)(results[0]));
}
...全文
34 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复

12,162

社区成员

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

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