WCF服务中的.SVC文件如何工作?

时间:2012-01-29 08:08:09

标签: wcf iis dll service svc

  

可能重复:
  WCF Service Deployment in IIS Page cannot be displayed and how does the SVC file work?

典型的WCF SVC文件将具有以下内容;

<%@ ServiceHost Service="AMWCF.Service1" %>

SVC文件不会通知WCF服务dll文件的位置。

因此,当有人在HTTP中打开此SVC文件链接时(如果服务在IIS中托管),链接如何知道从哪里获取dll文件?

1 个答案:

答案 0 :(得分:2)

它在\ Bin目录中的程序集中查找类。