C# – .NET Web Services without ASP.NET/IIS

asp.netcnetwcfweb services

I'm implementing a server component that needs to expose a web-service interface, but there is no application need for it to run with ASP.NET on IIS. Is there a straightforward way to implement Web Services in .NET without ASP.NET/IIS? (I'm using .NET 3.5 / C# 3.0)

Best Answer

You can use the ServiceHost class to host a service. The WCF tutorial contains sample code.