Hi @KwebenaAcquah-9104 ,
By default, Windows does not enable port sharing.
I recommend you to check that it's enabled correctly as well as check your IIS web application to make sure the enabled protocols include net.tcp
.
You can try adding portSharingEnabled="true"
to the binding
:
<system.serviceModel>
<bindings>
<netTcpBinding name="portSharingBinding"
portSharingEnabled="true" />
<services>
<service name="MyService">
<endpoint address="net.tcp://localhost/MyService"
binding="netTcpBinding"
contract="IMyService"
bindingConfiguration="portSharingBinding" />
</service>
</services>
</system.serviceModel>
Your code does not provide binding information, maybe you can refer to the documentation for how to write it.
Default NetTcpBinding
Net.TCP Port Sharing
Configuring WCF Services Using NetTcpBinding
Best regards,
Lan Huang
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.