c# - WCF url rewriting for net.tcp binding -


i'm trying rewrite url (with iis) wfc service uses net.tcp binding. have wfc service hosted on first machine , works fine - can use without problems. have second iis host i'd created application contains web.config (it should rewrite it's address first machine's wcf) , looks this:

<?xml version="1.0" encoding="utf-8"?> <configuration>     <system.webserver>         <directorybrowse enabled="true" />         <rewrite>             <rules>                 <rule name="reverseproxyinboundrule1" stopprocessing="true">                     <match url="service/(.*)" />                     <action type="rewrite" url="net.tcp://192.168.1.60/service/{r:1}" />                 </rule>             </rules>         </rewrite>     </system.webserver> </configuration> 

input url should rewritten like:

net.tcp//localhost/service/sampleservice.svc

when check logs of rewriting fine when use address of application connect (which should rewrite url wfc) receive errors there no wcf endpoint. tried many combinations of url rewrite rule in vain. both iss applications enables protocols: http, net.tcp, net.pipe, arr enables proxy well.

i didn't find threads redirecting net.tcp wcf's hints url rewriting wcf services it's http bindings. i'm not sure if doable rewrite service url iis if there other approach i'm looking forward suggestions.

i dont think possible...you have rewrite url in same site , same application pool.

http://blogs.msdn.com/b/asiatech/archive/2011/08/25/return-404-4-not-found-when-url-rewrite.aspx


Comments