I'm new to WCF and IIS but been doing some reading on how to host a WCF application in IIS. We have a system we're trying to deploy to IIS which needs HTTP and NET.TCP endpoints. I have everything configured as I saw in random tutorials but I still can't connect from my client. Any help with the configuration would be greatly appreciated!
My EdWCF.svc file in my WCF directory:
< %@ ServiceHost Language="C#" Debug="true" Service="TwoFour.WCF.Engine.EdWCF" % >
My Web.Config:
<?xml version="1.0"?>
<configuration>
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior name="MyBehaviour">
<serviceMetadata HttpGetEnabled="True" />
</behavior>
</serviceBehaviors>
</behaviors>
<service name="TwoFour.WCF.Engine.EdWCF" behaviorConfiguration="MyBehaviour">
<host>
<baseAddresses>
<add baseAddress="net.tcp://localhost:12345/WCF/EdWCF.svc"/>
</baseAddresses>
</host>
<endpoint address=""
binding="netTcpBinding"
bindingConfiguration="InsecureTcp"
contract="TwoFour.WCF.Interface.Shared.IEdWCF" />
<endpoint address="mexhttp" binding="mexHttpBinding" contract="IMetadataExchange"/>
</service>
<bindings>
<netTcpBinding>
<binding name="InsecureTcp" portSharingEnabled="true">
<security mode="None" />
</binding>
</netTcpBinding>
</bindings>
</system.serviceModel>
</configuration>
Thanks for any help or suggestions!