Host and use WCF Services in Windows Azure (CSAzureWCFServices)

This project shows how to host WCF in Windows Azure, and how to consume it. The demos include 1) A WCF web role , which hosts WCF in IIS; 2) A work role which hosts a WCF service (self-hosting); and 3) A windows console client that consumes the WCF services above.

C# (102.6 KB)
 
 
 
 
 
(14)
21,540 times
Add to favorites
4/17/2013
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question


  • What is the correct endpoint address in Talk2WorkRole?
    2 Posts | Last post December 10, 2011
    • Per this direction: "Change the address in method talk2Workrole to point to your own deploy address" - I'm unclear as to what this means.
      The sample code is as follows:            
      
      // You need to modify the endpoint address to fit yours.
      EndpointAddress endpoint = new EndpointAddress("net.tcp://127.0.0.1:5117/External");
      
      I tried setting it as follows:
      
      EndpointAddress endpoint = new EndpointAddress("net.tcp://e642df5d1b194105b38f689bb3fab43a.cloudapp.net");
      
      but that yields an error when using the channel created on that endpoint (line 52):
      
      Console.WriteLine(channel.GetRoleInfo());
      
      Could not connect to net.tcp://e642df5d1b194105b38f689bb3fab43a.cloudapp.net/. The connection attempt lasted for a time span of 00:00:01.2680000. TCP error code 10061: No connection could be made because the target machine actively refused it 157.55.173.97:808.
      
      What is the correct syntax for identifying the endpoint in this line of code?
      
    • You can post this question also in one of the Windows Azure Forum category: http://social.msdn.microsoft.com/Forums/en-US/category/windowsazureplatform
  • WCF self hosting is possible in azure?
    2 Posts | Last post December 09, 2011
    • hi,
      I create one website with WCF.I publish that website then convert to cloud application.How can set the endpoint address in cloud and azure
      
      Thanks,
      Suresh.M
    • You have either progrmatticaly so that or in bindings.