Click here to Skip to main content
15,905,971 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using an IIS host with netTcp enabled.
When I browse the svc files I get URL: "http://localhost/host_autostart/Service1.svc"
When using the default configuration for Host (web.config). On client when update service reference I get this:

HTML
<client>
           <endpoint address="net.tcp://user.domain/host_autostart/Service1.svc"
               binding="netTcpBinding" bindingConfiguration="NetTcpBinding_IService1"
               contract="ServiceReference1.IService1" name="NetTcpBinding_IService1" />
       </client>


I want the client address to be also "localhost/host/service" not "user.domain/host/service"

what configuration should I replace?

thanks
Posted
Updated 3-Jan-12 4:19am
v2

1 solution

have you had a look at config transforms?

http://msdn.microsoft.com/en-us/library/dd465326.aspx[^]

should be what you are looking for, then you can test againt multiple different endpoints i have debug->staging->production transforms for some of my projects.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900