我的Web服务程序在Win2000下能运行,在XP下不能用,求助!
我用VS.NET2003在Win2000 Server上写了一个ASP.NET Web服务程序sporst_as,一个Windows Form客户端程序sporst_ws,在Win2000 server上测试正常工作。但复制到XP下就不行。在XP上设置:
1、正确启动IIS。正确安装Microsoft.NET Framework 1.1;
2、SporstService.asmx 复制到inetpub\wwwroot\sporst_as下面;
3、sporst_as.dll复制到inetpub\wwwroot\sporst_as\bin下面,同目录还有一个必须的wfgbs.mdb数据库;
4、建立虚拟目录sporst指向inetpub\wwwroot\sporst_as目录。
5、设置任何人可读写sporst_as目录下的任何文件。
6、在任一目录下执行sporst_ws,出现错误信息如下:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.InvalidOperationException: Client found response content type of 'text/html', but expected 'text/xml'.
The request failed with the error message:
--
<html>
<head>
<title>Server Unavailable
</title>
</head>
<body>
<h1><font face=Verdana color=#ff3300>Server Application Unavailable
</font></h1>
<p>
<font face=Verdana>
The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request.
</p>
<p>
<b>Administrator Note:
</b> An error message detailing the cause of this specific request failure can be found in the application event log of the web server. Please review this log entry to discover what caused this error to occur.
</p>
</body>
</html>
...............其他信息不重要省略。
在另一台XP上,安装了VS.NET2003,且新建WebApplication1能正常运行。但运行该程序,出现下面错误:
System.IO.FileNotFoundException: 找不到文件或程序集名称“jwcve4_b.dll”,或找不到它的一个依赖项。
文件名: “jwcve4_b.dll”
.......一大堆at ....省掉
=== Pre-bind state information ===
LOG: Where-ref bind. Location = C:\WINDOWS\TEMP\jwcve4_b.dll
LOG: Appbase = file:///C:/Inetpub/wwwroot/sporst_as
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: Attempting download of new URL file:///C:/WINDOWS/TEMP/jwcve4_b.dll.
好象是没有应策略吧。怎么做呢?似乎这是一个Web service配置问题。求高手帮助。