Hi @Kwebena Acquah ,
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
You can try adding
portSharingEnabled="true" to the
<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.
Net.TCP Port Sharing
Configuring WCF Services Using NetTcpBinding
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.