Last post Mar 11, 2014 04:00 AM by Fuxiang Zhang - MSFT
Mar 09, 2014 11:21 PM|neoaguil17|LINK
I create WCF by 2 methods:
In one i create the file: *.svc and the other no create *.svc, 2 methods work fine but what else is the best and why?
Mar 11, 2014 04:00 AM|Fuxiang Zhang - MSFT|LINK
Thanks for your post.
Based on your description, I see you are create wcf with .svc file services and also without .svc file service.
As we all known that the .svc file is equivalent to an asmx file and .svc file wcf service used to be host to web server IIS.
And if you want to host wcf service with console application or windows service, you should choose the services without .svc files.
Besides, we can also host the service without .svc file on IIS server by add below web.config.
Above configuration assign the service a relativeAddress as "~/HostDevServer/HelloWorldService.svc"
For more information, you can refer to below thread.
Hope that helps, thanks.