Using Visual Studio 2012, I have created a WCF 4.5 Service Library. When the service is published to my local IIS, despite the serviceActivations section in the configuration file, a .svc file is still created.
I'm also using a custom factory in the configuration file, which, fortunately, isn't lost because serviceActivations overrides .svc files.
The configuration file look like this :
<serviceHostingEnvironment aspNetCompatibilityEnabled="false" multipleSiteBindingsEnabled="true">
<serviceActivations>
<add factory="My.ServiceHostFactory" relativeAddress="~/BirtProxy.SoapReport.svc" service="BirtProxy.SoapReport" />
</serviceActivations>
</serviceHostingEnvironment>
The .svc file that is created is like this :
<%@ ServiceHost Service="BirtProxy.SoapReport" %>
I have several other services where I don't have this behavior, but I can't figure out what's wrong. I don't want this additional file to be created.
Any Help appreciated.
The .svc file is created because the service isn't declared in the configuration node. As soon as I've added the service, the file creation is gone.