c# - Self hosted wcf service on azure vm windows server -


i have wcf service udp binding (new in wcf 4.5) , i'm trying host on windows server 2012 on azure.

i did endpoint mapping on azure port need (39901; works http:80, can see iis website) , allowed traffic in firewall port. still can't wsdl in web browser.

here app.config console app:

<configuration> <startup>     <supportedruntime version="v4.0" sku=".netframework,version=v4.5" /> </startup> <system.servicemodel>     <behaviors>         <servicebehaviors>             <behavior>                 <servicemetadata httpgetenabled="true" httpsgetenabled="true" />                 <servicedebug includeexceptiondetailinfaults="true" />                 <servicethrottling maxconcurrentcalls="12" maxconcurrentinstances="56" maxconcurrentsessions="12" />                 <userequestheadersformetadataaddress></userequestheadersformetadataaddress>             </behavior>         </servicebehaviors>     </behaviors>     <services>         <service name="serverservice.udpservicealpha">             <endpoint address="soap.udp://localhost:8091" binding="udpbinding" contract="serverservice.iudpservicealpha" />             <host>                 <baseaddresses>                     <add baseaddress="http://localhost:39901/selfserverhost/" />                 </baseaddresses>             </host>         </service>     </services>     <protocolmapping>         <add binding="udpbinding" scheme="soap.udp" />     </protocolmapping>     <bindings>     </bindings>     <servicehostingenvironment aspnetcompatibilityenabled="true" multiplesitebindingsenabled="true" /> </system.servicemodel> </configuration> 

for localhost works fine... i'm new in (azure, windows server deployment) , tried lot of ideas here on stackoverflow or anywhere else. still not working.

any idea?

edit1:

<services>         <service name="serverservice.udpservicealpha" behaviorconfiguration="udpservicealpha.behavior">              <endpoint address="/" binding="udpbinding" contract="serverservice.iudpservicealpha"/>             <endpoint address="/" binding="webhttpbinding" contract="serverservice.iudpservicealpha"/>             <host>                 <baseaddresses>                     <add baseaddress="http://xxx.cloudapp.net:39901/selfserverhost/" />                     <add baseaddress="soap.udp://xxx.cloudapp.net:39901/selfserverhost/" />                 </baseaddresses>             </host>         </service>     </services> 

try changing azure vm endpoint public port 39901 443!

a hell lot of sys-admins , isps block outgoing ports, , allow few (outgoing port white listing). port 80 , 443 never blocked because http traffic.

change public port vm endpoint. leave private port - 39901.


Comments

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -