NET TCP / HTTP WCF Hosted w IIS
Jestem nowym użytkownikiem WCF i IIS, ale czytałem trochę o tym, jak hostować aplikację WCF w IIS. Mamy system, który próbujemy wdrożyć w IIS, który wymaga punktów końcowych HTTP i NET.TCP. Mam wszystko skonfigurowane tak, jak widziałem w losowych samouczkach, ale nadal nie mogę się połączyć z moim klientem. Jakakolwiek pomoc w konfiguracji byłaby bardzo mile widziana!
Mój plik EdWCF.svc w moim katalogu WCF:
< %@ 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>
Dziękujemy za pomoc lub sugestie!