(Please read the comment as I have a fix)
Hi,
I created a WCF service that I host in IIS 7.5 on Windows 7 using .net 4.0.
The service hosts both http and net.tcp.
I tested my service using WcfTestClient and it seems to work correctly through basicHttp and netTcp.
However, when I try to use this service through my ASP.NET site, I get an error when trying to go through nettcp
The endpoint of my client is as follows
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="Generic_HttpBinding" sendTimeout="00:01:00" receiveTimeout="00:01:00" maxBufferPoolSize="2000000" maxReceivedMessageSize="2000000000">
<security mode="None"/>
<readerQuotas maxDepth="2000000" maxStringContentLength="2000000" maxArrayLength="2000000" maxBytesPerRead="2000000" maxNameTableCharCount="2000000"/>
</binding>
</basicHttpBinding>
<netTcpBinding>
<binding name="Generic_Binding" sendTimeout="00:01:00" receiveTimeout="00:01:00" maxBufferPoolSize="2000000" maxReceivedMessageSize="2000000000">
<security mode="None"/>
<readerQuotas maxDepth="2000000" maxStringContentLength="2000000" maxArrayLength="2000000" maxBytesPerRead="2000000" maxNameTableCharCount="2000000"/>
</binding>
</netTcpBinding>
</bindings>
<client>
<endpoint name="EndPointHttp" address="http://localhost:43/Service/MyService.svc" binding="basicHttpBinding" bindingConfiguration="Generic_HttpBinding" contract="NameSpace.Services.Contracts.IService"></endpoint>
<endpoint name="EndPoint" address="net.tcp://localhost:42/Service/MyService.svc" binding="netTcpBinding" bindingConfiguration="Generic_Binding" contract="NameSpace.Services.Contracts.IService"></endpoint>
</client>
Now I call the service in the same way, just changing the name of the endpoint
var factory = new ChannelFactory<IService>(SuppliedEndpointName);
factory.Open();
var proxy = factory.CreateChannel();
var result = proxy.SomeServiceMethod();
basicHttpBinding, .
-, nettcp, :
: . . - "00: 01: 00".
:
: 10054
, , .
HTTP- WCF NON HTTP.
HTTP, net.tcp .
http, net.tcp IIS.
.
aspnet_regiis -i .net 4.0
HELP!
- , .
, .
, ?