John Isaiah Carmona
John Isaiah Carmona

Reputation: 5356

How can I deploy WCF Service without IIS in XP?

How can I deploy WCF Service without IIS in XP? (pretty much straightforward)

The service will only be consumed by a local network in a Windows App, has a security of a Custom Username and Password Validator in a wsHttpBinding.

My service codes are in C#, Framework 4.0, build in Visual Studio 2010 Pro.

Upvotes: 0

Views: 1122

Answers (2)

Huusom
Huusom

Reputation: 5912

You should write it as a self hosted windows service, there is a write up on it on msdn.

Upvotes: 1

tomfanning
tomfanning

Reputation: 9660

Using System.ServiceModel.ServiceHost.

In essence:

IMyContract instance = new MyService();
var host = new ServiceHost(instance, "net.tcp://localhost:1234/MyEndpoint");

Upvotes: 1

Related Questions