I have developed a Web service using WCF Service Application. This service application is a part of multiple projects. we have data access , services(business logic) , testing(to test class) and WCF Service application.Where WCF Service application is just like an infterface and all the request are sent to the services project. so all the projects communicate with each other. I am new to hosting WCF application. Now to host this on IIS do i have to put the whole project in the IIS virtual directory?
A:
Right-click the WCF Service project in Visual Studio and choose Publish.
John Saunders
2010-03-12 14:43:48
But with asp.net web application, we usually put the files manually in IIS virtual directory
Pinu
2010-03-12 14:45:35
@Pinu: I suggest you use Publish for ASP.NET applications as well. It knows what files need to be there and knows how to put them there.
John Saunders
2010-03-12 18:10:48
@John, Hey John thank ,I tried publish and it worked for me , it built all my class library in to a dll :-)
Pinu
2010-03-12 20:42:52
A:
You can manually copy the needed files or setup a script or other automated process to do it for you. Perhaps a Visual Studio post build event. I create my WCF services in their own website project under my solution. Then when it is time to deploy/update the production site, I copy the *.svc file(s) and the *.dll file(s) in the bin directory to the production folders. I keep a seperated web.config for my production and development environments.
DaveB
2010-03-12 16:18:30