开发者

WCF TCP Binding setup between IIS and Service

I developed a WCF service, and now reading about the bindings. It s said that TCP binding is the fastest one, which i like to use, but it requires WCF to WCF communication? What s that 开发者_如何学Pythonexactly means?

I have a an application that s on IIS 7, using ASP.NET and a WCF service. they are on different machines. can i use TCP binding?

When i try tcp binding from client (IIS 7) to WCF service, i m getting connection error.

is it possible to connect to WCF service using only tcp binding from another server with IIS 7?

if there is , how to do it? I open the port on firewall etc. oh , wcftestclient works, my app doesnt. :(

again, CLIENT IS ASP.NET PAGE, SERVICE IS WCF, in the SAME NETWORK.


IIS uses http. So if your intent is to communicate from a WCF client to an ASP.NET application you should use the http binding. In IIS7, you have to manually go through a series of steps to enable non-HTTP bindings, but it's possible. This MSDN article show you how you can do this http://msdn.microsoft.com/en-us/magazine/cc163357.aspx

If your client application is the ASP.NET application then yes, you should be able to use TCP binding between you ASP.NET application (that is acting as a WCF client) and your other application that is NOT an ASP.NET application but a regular application that is a WCF service

What you might want to try is build a console application as your WCF client using TCP binding and then:

  1. Run it from the same box as your service and ensure things are working correctly.
  2. Run it from the IIS box against your WCF service running on the other box and see if it works.

If both these work then it should work from your ASP.NET application as well.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜