调用IIS上托管的Web服务(ASMX)时出现错误消息
无法加载文件或程序集'Microsoft.Practices.EnterpriseLibrary.Data,版本= 3.0.0.0,区域性=中性,PublicKeyToken =空
我检查了Microsoft.Practices.EnterpriseLibrary.Data和bin文件夹中的所有相关文件,这些文件的版本均为5.0.414.0
此外,我已经在GAC上检查了此文件是否存在,但没有此类文件。
我想知道此版本3.0.0.0的来源。该版本的定义位置?
我在整个IIS目录中搜索了单词3.0.0.0,没有这样的单词。
我已经检查过使用SOAP SONAR工具调用Web服务。
输出:
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.IO.FileLoadException: Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Data, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
at ProcessData(String Number)
--- End of inner exception stack trace ---</faultstring>
<detail/>
</soap:Fault>
</soap:Body>
</soap:Envelope>
所有其他环境均正常运行,但我们仅在一个客户端上面临此问题。由于DLL缺少错误,它也没有进入代码,那是我检查过的