Share via


Config based activation in WCF

There is a cool WCF feature instroduced in dev10 called configless activation. You don't have to have a *.svc file in your web directory, instead you can activate a WCF service using the following configuration element:

 

<system.serviceModel>

<

serviceHostingEnvironment>

<

serviceActivations>

<

add relativeAddress="Service1.svc" service="configlessWCF.Service1"/>

</

serviceActivations>

</

serviceHostingEnvironment>

</

system.serviceModel>

Hope this helps.