Windows Vista Beta | WinVistaBeta.com - Message | WCF service is not visible from clients outside the development computer.

November 18, 2008  
Subject: WCF service is not visible from clients outside the development computer.
Group: microsoft.public.windows.developer.winfx.indigo
Date: 12/26/2007 10:07:13 AM
From: "Mike" [Email Address Protection]

This is a multi-part message in MIME format.

------=_NextPart_000_0028_01C847B7.D9E6FBC0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit

WCF service is not visible from clients outside the development
computer.

I have the following service implementation

<services>



<service name="Hitnext.ActiveDialer.Services.ActiveDialerServices"

behaviorConfiguration="ServiceBehavior">



<endpoint name="netTCP_Endpoint"
binding="netTcpBinding"

contract="Hitnext.ActiveDialer.Services.IActiveDialerServices"

bindingConfiguration="netTCP_Bindings"/>



<endpoint name="MetaDataEchange"

binding="mexHttpBinding"

contract="IMetadataExchange" />



<host>

<baseAddresses>

<add baseAddress="net.tcp://somedomain.com:19000" />

<add baseAddress="http://localhost:18000" />

</baseAddresses>

</host>



</service>



</services>

I create a proxy in the client side thru the Add Service Reference tool
in VS.
When I run it from my computer (local development computer) it works
fine.

If I publish the app and try to run it from another computer, it does
not find the service (that is running in somedomain.com:19000).

So you know the service is running when I run the client, and I can
access somedomain.com:19000 via telnet from the client computer. And
also I redirect connection from ports 19000 and 18000 to the computer
running the service.

Any idea why it might now be working?

Thanks!








------=_NextPart_000_0028_01C847B7.D9E6FBC0
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin-top:0in;
margin-right:0in;
margin-bottom:10.0pt;
margin-left:0in;
line-height:115%;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
..MsoChpDefault
{mso-style-type:export-only;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal>WCF service is not visible from clients outside the
development computer.<o:p></o:p></p>

<p class=3DMsoNormal>I have the following service =
implementation<o:p></o:p></p>

<p class=3DMsoNormal =
style=3D'margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal;text-autospace:none'><span =
style=3D'font-size:10.0pt;font-family:"Courier New";
color:blue'>&lt;</span><span =
style=3D'font-size:10.0pt;font-family:"Courier New";
color:#A31515'>services</span><span =
style=3D'font-size:10.0pt;font-family:"Courier New";
color:blue'>&gt;<o:p></o:p></span></p>

<p class=3DMsoNormal =
style=3D'margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal;text-autospace:none'><span =
style=3D'font-size:10.0pt;font-family:"Courier New";
color:blue'><o:p>&nbsp;</o:p></span></p>

<p class=3DMsoNormal =
style=3D'margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal;text-autospace:none'><span =
style=3D'font-size:10.0pt;font-family:"Courier New";
color:blue'>&lt;</span><span =
style=3D'font-size:10.0pt;font-family:"Courier New";
color:#A31515'>service</span><span =
style=3D'font-size:10.0pt;font-family:"Courier New";
color:blue'> </span><span style=3D'font-size:10.0pt;font-family:"Courier =
New";
color:red'>name</span><span =
style=3D'font-size:10.0pt;font-family:"Courier New";
color:blue'>=3D</span><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'>&quot;<span
style=3D'color:blue'>Hitnext.ActiveDialer.Services.ActiveDialerServices</=
span>&quot;<o:p></o:p></span></p>

<p class=3DMsoNormal =
style=3D'margin-bottom:0in;margin-bottom:.0001pt;text-indent:
..5in;line-height:normal;text-autospace:none'><span =
style=3D'font-size:10.0pt;
font-family:"Courier New";color:red'>behaviorConfiguration</span><span
style=3D'font-size:10.0pt;font-family:"Courier =
New";color:blue'>=3D</span><span
style=3D'font-size:10.0pt;font-family:"Courier New"'>&quot;<span
style=3D'color:blue'>ServiceBehavior</span>&quot;<span =
style=3D'color:blue'>&gt;<o:p></o:p></span></span></p>

<p class=3DMsoNormal =
style=3D'margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal;text-autospace:none'><span =
style=3D'font-size:10.0pt;font-family:"Courier New";
color:blue'><o:p>&nbsp;</o:p></span></p>

<p class=3DMsoNormal =
style=3D'margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal;text-autospace:none'><span =
style=3D'font-size:10.0pt;font-family:"Courier New";
color:blue'>&lt;</span><span =
style=3D'font-size:10.0pt;font-family:"Courier New";
color:#A31515'>endpoint</span><span =
style=3D'font-size:10.0pt;font-family:"Courier New";
color:blue'> </span><span style=3D'font-size:10.0pt;font-family:"Courier =
New";
color:red'>name</span><span =
style=3D'font-size:10.0pt;font-family:"Courier New";
color:blue'>=3D</span><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'>&quot;<span
style=3D'color:blue'>netTCP_Endpoint</span>&quot; <br>
<span style=3D'color:red'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
binding</span><span style=3D'color:blue'>=3D</span>&quot;<span
style=3D'color:blue'>netTcpBinding</span>&quot;<o:p></o:p></span></p>

<p class=3DMsoNormal =
style=3D'margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal;text-autospace:none'><span =
style=3D'font-size:10.0pt;font-family:"Courier New";
color:blue'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span =
style=3D'font-size:10.0pt;font-family:"Courier New";
color:red'>contract</span><span =
style=3D'font-size:10.0pt;font-family:"Courier New";
color:blue'>=3D</span><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'>&quot;<span
style=3D'color:blue'>Hitnext.ActiveDialer.Services.IActiveDialerServices<=
/span>&quot;<span
style=3D'color:blue'> <o:p></o:p></span></span></p>

<p class=3DMsoNormal =
style=3D'margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal;text-autospace:none'><span =
style=3D'font-size:10.0pt;font-family:"Courier New";
color:blue'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span =
style=3D'font-size:10.0pt;font-family:"Courier New";
color:red'>bindingConfiguration</span><span =
style=3D'font-size:10.0pt;font-family:
"Courier New";color:blue'>=3D</span><span =
style=3D'font-size:10.0pt;font-family:
"Courier New"'>&quot;<span =
style=3D'color:blue'>netTCP_Bindings</span>&quot;<span
style=3D'color:blue'>/&gt;<o:p></o:p></span></span></p>

<p class=3DMsoNormal =
style=3D'margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal;text-autospace:none'><span =
style=3D'font-size:10.0pt;font-family:"Courier New";
color:blue'><o:p>&nbsp;</o:p></span></p>

<p class=3DMsoNormal =
style=3D'margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal;text-autospace:none'><span =
style=3D'font-size:10.0pt;font-family:"Courier New";
color:#A31515'>&lt;endpoint</span><span =
style=3D'font-size:10.0pt;font-family:
"Courier New";color:blue'> </span><span =
style=3D'font-size:10.0pt;font-family:
"Courier New";color:red'>name</span><span =
style=3D'font-size:10.0pt;font-family:
"Courier New";color:blue'>=3D</span><span =
style=3D'font-size:10.0pt;font-family:
"Courier New"'>&quot;<span =
style=3D'color:blue'>MetaDataEchange</span>&quot;<o:p></o:p></span></p>

<p class=3DMsoNormal =
style=3D'margin-bottom:0in;margin-bottom:.0001pt;text-indent:
..5in;line-height:normal;text-autospace:none'><span =
style=3D'font-size:10.0pt;
font-family:"Courier New";color:red'>binding</span><span =
style=3D'font-size:10.0pt;
font-family:"Courier New";color:blue'>=3D</span><span =
style=3D'font-size:10.0pt;
font-family:"Courier New"'>&quot;<span =
style=3D'color:blue'>mexHttpBinding</span>&quot;<o:p></o:p></span></p>

<p class=3DMsoNormal =
style=3D'margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal;text-autospace:none'><span =
style=3D'font-size:10.0pt;font-family:"Courier New";
color:blue'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span =
style=3D'font-size:10.0pt;font-family:"Courier New";
color:red'>contract</span><span =
style=3D'font-size:10.0pt;font-family:"Courier New";
color:blue'>=3D</span><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'>&quot;<span
style=3D'color:blue'>IMetadataExchange</span>&quot;<span =
style=3D'color:blue'>
/&gt;<o:p></o:p></span></span></p>

<p class=3DMsoNormal =
style=3D'margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal;text-autospace:none'><span =
style=3D'font-size:10.0pt;font-family:"Courier New";
color:blue'><o:p>&nbsp;</o:p></span></p>

<p class=3DMsoNormal =
style=3D'margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal;text-autospace:none'><span =
style=3D'font-size:10.0pt;font-family:"Courier New";
color:blue'>&lt;</span><span =
style=3D'font-size:10.0pt;font-family:"Courier New";
color:#A31515'>host</span><span =
style=3D'font-size:10.0pt;font-family:"Courier New";
color:blue'>&gt;<o:p></o:p></span></p>

<p class=3DMsoNormal =
style=3D'margin-bottom:0in;margin-bottom:.0001pt;text-indent:
..5in;line-height:normal;text-autospace:none'><span =
style=3D'font-size:10.0pt;
font-family:"Courier New";color:blue'>&lt;</span><span =
style=3D'font-size:10.0pt;
font-family:"Courier New";color:#A31515'>baseAddresses</span><span
style=3D'font-size:10.0pt;font-family:"Courier =
New";color:blue'>&gt;<o:p></o:p></span></p>

<p class=3DMsoNormal =
style=3D'margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal;text-autospace:none'><span =
style=3D'font-size:10.0pt;font-family:"Courier New";
color:blue'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp; &lt;</span><span style=3D'font-size:10.0pt;font-family:
"Courier New";color:#A31515'>add</span><span style=3D'font-size:10.0pt;
font-family:"Courier New";color:blue'> </span><span =
style=3D'font-size:10.0pt;
font-family:"Courier New";color:red'>baseAddress</span><span =
style=3D'font-size:
10.0pt;font-family:"Courier New";color:blue'>=3D</span><span =
style=3D'font-size:
10.0pt;font-family:"Courier New"'>&quot;<span =
style=3D'color:blue'>net.tcp://somedomain.com:19000</span>&quot;<span
style=3D'color:blue'> /&gt;<o:p></o:p></span></span></p>

<p class=3DMsoNormal =
style=3D'margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal;text-autospace:none'><span =
style=3D'font-size:10.0pt;font-family:"Courier New";
color:blue'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp; &lt;</span><span style=3D'font-size:10.0pt;font-family:
"Courier New";color:#A31515'>add</span><span style=3D'font-size:10.0pt;
font-family:"Courier New";color:blue'> </span><span =
style=3D'font-size:10.0pt;
font-family:"Courier New";color:red'>baseAddress</span><span =
style=3D'font-size:
10.0pt;font-family:"Courier New";color:blue'>=3D</span><span =
style=3D'font-size:
10.0pt;font-family:"Courier New"'>&quot;<span =
style=3D'color:blue'>http://localhost:18000</span>&quot;<span
style=3D'color:blue'> /&gt;<o:p></o:p></span></span></p>

<p class=3DMsoNormal =
style=3D'margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal;text-autospace:none'><span =
style=3D'font-size:10.0pt;font-family:"Courier New";
color:blue'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/</span><span =
style=3D'font-size:10.0pt;font-family:"Courier New";
color:#A31515'>baseAddresses</span><span =
style=3D'font-size:10.0pt;font-family:
"Courier New";color:blue'>&gt;<o:p></o:p></span></p>

<p class=3DMsoNormal =
style=3D'margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal;text-autospace:none'><span =
style=3D'font-size:10.0pt;font-family:"Courier New";
color:blue'>&lt;/</span><span =
style=3D'font-size:10.0pt;font-family:"Courier New";
color:#A31515'>host</span><span =
style=3D'font-size:10.0pt;font-family:"Courier New";
color:blue'>&gt;<o:p></o:p></span></p>

<p class=3DMsoNormal =
style=3D'margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal;text-autospace:none'><span =
style=3D'font-size:10.0pt;font-family:"Courier New";
color:blue'><o:p>&nbsp;</o:p></span></p>

<p class=3DMsoNormal =
style=3D'margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal;text-autospace:none'><span =
style=3D'font-size:10.0pt;font-family:"Courier New";
color:blue'>&lt;/</span><span =
style=3D'font-size:10.0pt;font-family:"Courier New";
color:#A31515'>service</span><span =
style=3D'font-size:10.0pt;font-family:"Courier New";
color:blue'>&gt;<o:p></o:p></span></p>

<p class=3DMsoNormal =
style=3D'margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal;text-autospace:none'><span =
style=3D'font-size:10.0pt;font-family:"Courier New";
color:blue'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <o:p></o:p></span></p>

<p class=3DMsoNormal><span =
style=3D'font-size:10.0pt;line-height:115%;font-family:
"Courier New";color:blue'>&lt;/</span><span =
style=3D'font-size:10.0pt;line-height:
115%;font-family:"Courier New";color:#A31515'>services</span><span
style=3D'font-size:10.0pt;line-height:115%;font-family:"Courier =
New";color:blue'>&gt;<o:p></o:p></span></p>

<p class=3DMsoNormal>I create a proxy in the client side thru the Add =
Service
Reference tool in VS.<br>
When I run it from my computer (local development computer) it works =
fine.<o:p></o:p></p>

<p class=3DMsoNormal>If I publish the app and try to run it from another =
computer,
it does not find the service (that is running in =
<b>somedomain.com:19000</b>).<o:p></o:p></p>

<p class=3DMsoNormal>So you know the service is running when I run the =
client,
and I can access <b>somedomain.com:19000 </b>via telnet from the client
computer. And also I redirect connection from ports 19000 and 18000 to =
the
computer running the service.<o:p></o:p></p>

<p class=3DMsoNormal>Any idea why it might now be =
working?<o:p></o:p></p>

<p class=3DMsoNormal>Thanks!<o:p></o:p></p>

<p class=3DMsoNormal><o:p>&nbsp;</o:p></p>

<p class=3DMsoNormal><o:p>&nbsp;</o:p></p>

<p class=3DMsoNormal><o:p>&nbsp;</o:p></p>

</div>

</body>

</html>

------=_NextPart_000_0028_01C847B7.D9E6FBC0--


Back