WCF:无法加载文件或程序...系统找不到指定的文件文件、找不到、加载、程序

2023-09-07 04:57:52 作者:甄骏

我有一个WCF服务托管在IIS 6/7。我尝试不同的东西与.svc文件,但我不能得到它的工作。我总是得到一个FileNotFoundException异常无法加载文件或程序集XYZ或它depencies之一。该系统找不到指定的文件。

该大会是在bin文件夹,而不是在GAC。但XYZ的命名空间和类名,所以服务器找错了组装的文件名。大会加载跟踪确认,它在寻找在各个地方的XYZDLL,但该命名空间和类名...... XYDLL将是组装。

我尝试了SVC,Visual Studio 2010中生成的,我修改了它仅包含完全合格的名称

 <%@ ServiceHost的服务=XYZ,XY,版本= 1.0.2.0,文化=中性公钥= XXXXX%>
 

解决方案

这是否WCF有任何第三方库指,这要求Applicatin游泳池是32位版或64位版本?验证程序池设置为经典之作,整合为适当

I've got a WCF Service hosted in IIS 6/7. I tried different things with the .svc file, but I can't get it to work. I always get a FileNotFoundException "Could not load file or assembly 'X.Y.Z' or one of its depencies. The system cannot find the file specified."

c 系统找不到指定文件

The assembly is in the bin folder, not in the GAC. But X.Y.Z is the namespace and classname, so the server is looking for the wrong assembly filename. The Assembly Load Trace confirms, that it's looking for an X.Y.Z.DLL in various places, but that namespace and classname ... X.Y.DLL would be the assembly.

I tried the svc, Visual Studio 2010 generated and I modified it to contain only the fully qualified name

<%@ ServiceHost Service="X.Y.Z, X.Y, Version=1.0.2.0, Culture=neutral, PublicKeyToken=xxxxx" %>

解决方案

Does this WCF has any third party libraries referring, which demand Applicatin Pool to be either 32-bit version or 64-bit version? Verify AppPool set to classic, integrated as appropriately

 
精彩推荐