I\'m having a tough time with NetTcpBinding.
When I run my WCFservice,I get this:
System.InvalidOperationException: Could not find a base address tha
In this section
<host>
<baseAddresses>
<add baseAddress="http://localhost:8731/.../" />
</baseAddresses>
</host>
add a net.tcp:// base address.
<host>
<baseAddresses>
<add baseAddress="http://localhost:8732/" />
<add baseAddress="net.tcp://localhost"/>
</baseAddresses>
</host>
You can share ports, it's not too hard.
Make sure when selecting enabled protocols in IIS (right click on site -> Manage Web Site -> Advanced Settings) that you DO NOT USE SPACES. If you have "http, net.tcp" instead of "http,net.tcp" it will not work, and instead give you this exact error.
More information here: http://www.weeksofprogramming.com/post/Could-not-find-a-base-address-Check-for-spaces-in-IIS7.aspx
I'm sure by now you've fixed the issue, but it really is nothing to do with baseAddresses which is what all the bullentin boards lead you to. I found the answer at http://social.msdn.microsoft.com/forums/en-US/wcf/thread/c9f8d99d-89ee-4573-8528-a21b047bad11. Assuming you are using IIS 7.x: right click the virtual directory/application in IIS, select Manage application -> Advanced settings. In the 'Enabled Protocols' section add net.tcp, e.g.: http,net.tcp. This is necessary even if you added this protocol already at the site level.
Configure net.tcp binding in your IIS site and set enabled protocol as "http,net.tcp using advanced setting".It should work