Make sure
IIS
is configured to useWindows Process Activation Service(WAS)
:- From the Start menu, choose Control Panel.
- Select Programs, then Programs and Features, or in Classic view,
select
Programs and Features
. - Click
Turn Windows Features on or off
. - Under Features Summary, click Add Features.
- Expand the
Microsoft .NET Framework 3.0(or 3.5)
node and check theWindows Communication Foundation Non-HTTP Activation feature
.
Make sure Net.Pipe Listener Adapter service is running:
- Got to
run
& openServices.msc
- Make sure
Net.Pipe Listener Adapter
service is running.
- Got to
In your App.config, you have used baseAddress
with http
, try changing that to net.pipe
:
<baseAddresses>
<add baseAddress="net.pipe://localhost/ServiceModelSamples/service"/>
</baseAddresses>
see NetNamedPipeBinding for more details.
Update:
You need to add bindingConfiguration
in endpoint
like :
<endpoint address=""
binding="netNamedPipeBinding"
contract="Microsoft.ServiceModel.Samples.ICalculator"
bindingConfiguration="Binding1" />
and add actual bindingConfiguration
like:
<bindings>
<!--
Following is the expanded configuration section for a NetNamedPipeBinding.
Each property is configured with the default value.
-->
<netNamedPipeBinding>
<binding name="Binding1"
closeTimeout="00:01:00"
openTimeout="00:01:00"
receiveTimeout="00:10:00"
sendTimeout="00:01:00"
transactionFlow="false"
transferMode="Buffered"
transactionProtocol="OleTransactions"
hostNameComparisonMode="StrongWildcard"
maxBufferPoolSize="524288"
maxBufferSize="65536"
maxConnections="10"
maxReceivedMessageSize="65536">
<security mode="Transport">
<transport protectionLevel="EncryptAndSign" />
</security>
</binding>
</netNamedPipeBinding>
</bindings>