0
使用Visual Studio 2012,我創建了一個WCF 4.5服務庫。 當我的本地IIS爲service is published時,儘管在配置文件中有serviceActivations節,仍然會創建一個.svc文件。WCF服務發佈和無文件激活:仍然創建一個.svc文件
我還在配置文件中使用了一個自定義工廠,幸好它不會丟失,因爲serviceActivations會覆蓋.svc文件。
配置文件是這樣的:
<serviceHostingEnvironment aspNetCompatibilityEnabled="false" multipleSiteBindingsEnabled="true">
<serviceActivations>
<add factory="My.ServiceHostFactory" relativeAddress="~/BirtProxy.SoapReport.svc" service="BirtProxy.SoapReport" />
</serviceActivations>
</serviceHostingEnvironment>
所創建的.svc文件是這樣的:
<%@ ServiceHost Service="BirtProxy.SoapReport" %>
我還有其它的服務,我沒有這種行爲,但我無法弄清楚什麼是錯的。我不想創建這個額外的文件。
任何幫助表示讚賞。