Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/vim/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在WCF配置中指定已实现的服务契约dll_Wcf_Wcf Configuration_Wcf Endpoint - Fatal编程技术网

如何在WCF配置中指定已实现的服务契约dll

如何在WCF配置中指定已实现的服务契约dll,wcf,wcf-configuration,wcf-endpoint,Wcf,Wcf Configuration,Wcf Endpoint,我的服务实现出现在Calc.dll中 <service behaviorConfiguration="Default" name="MySvc"> <endpoint contract="Company.ICalc" .... /> WCF服务存在于Svc.dll 我在Svc.dll的WCFapp.config文件中添加了contract-inside-endpoint标记 <service behaviorConfiguration="Default" n

我的服务实现出现在
Calc.dll

<service behaviorConfiguration="Default" name="MySvc">
   <endpoint contract="Company.ICalc" .... />
WCF服务存在于
Svc.dll

我在
Svc.dll
的WCF
app.config
文件中添加了contract-inside-endpoint标记

<service behaviorConfiguration="Default" name="MySvc">
   <endpoint contract="Company.ICalc" .... />


WCF如何知道该服务是在
Calc.dll
中实现的?我们刚刚指定了合同名称。

为了使其工作,您的
svc.dll
项目必须以某种方式引用
calc.dll
-因此,.NET/WCF运行时可以找到指定的命名空间和类