views:

76

answers:

1

Hi there,

I am looking to host a wcf service while i am developing.

Is this best with IIS or can i just use the default BUILT IN web server that ships with Visual Studio?

I can change the Assign automatic port to specific port so in my client i always ahave a fixed address.

I was hoping somebody could advise the best way to go?

+2  A: 

The most convenient way to host a WCF service during development is using the WCF Service Host built into Visual Studio.

You can control the communication protocol and port used by your services in the WCF configuration settings:

<services>
    <service name="MyNamespace.MyService">
        <endpoint 
            address="http://localhost:8080/myservice"
            binding="basicHttpBinding" 
            contract="MyNamespace.MyContract"  />
    </service>
</services>

However, if you need to run your services in the ASP.NET pipeline, I'll go with the ASP.NET Development Server (formerly known as Cassini).

Enrico Campidoglio