views:

339

answers:

4

Is there a special project type for creating a WCF to be hosted in IIS?

+1  A: 

I assume you're talking about VS 2008.

I can't see a way to have the WCF Service Library template use IIS for hosting. My advice is to create an ASP.NET Web Application, configure it to be IIS hosted, delete the Default.aspx file, and then add the WCF Service to the project.

Rob Windsor
A: 

Change it in the project properties.

leppie
Could you be more specific on exactly how the questioner should do this? Which property is set? What is the appropriate value for that property?
DOK
+3  A: 

You don't need to use a special project type for hosing inside IIS. As long as you put the dlls in the bin folder and create a .svc file it will work. A standard web site project would do the trick.

jezell
A: 

You can use the "WCF Service Application" template if you like, but as has been said, you don't really need anything special.

John Saunders