简体   繁体   English

在WCF服务中访问引用的dll

[英]Accessing referenced dll in WCF service

I have a WCF singleton service 我有WCF单身人士服务

  [ServiceBehavior(InstanceContextMode = InstanceContextMode.Single)]
 public class MyService: IMyService
  {
        ...my service code...
  }

I am referencing a Dll in this service and using some of its methods.It compiles fine.But when I host my service on IIS it gives error that assembly is not found.Can anybody point out what is missing here. 我在这个服务中引用了一个Dll并使用了它的一些方法,它可以很好地编译,但是当我在IIS上托管我的服务时,它给出了找不到汇编的错误。有人可以指出这里缺少什么。

The 3rd party dll is 64 bit .Net dll and my system,IIS and service are also 64 bit. 第三方dll是64位.Net dll,我的系统,IIS和服务也是64位。 I even checked IIS property to launch 32 bit worker thread,thats also false. 我什至检查了IIS属性以启动32位工作线程,这也是错误的。

The dll has all static methods dll具有所有静态方法

Is it IIS problem or my implementation? 是IIS问题还是我的实现?

Have you copied that DLL on IIS when you have published App ? 发布App后,是否已在IIS上复制了该DLL? Have you marked copy output true on referenced DLL ? 您是否将引用的DLL上的副本输出标记为true? Thanks 谢谢

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM