.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Sandeep Singh

Home >> Articles >> WCF >> Post New Resource Bookmark and Share   

 Subscribe to Articles

Host WCF Service Role in Windows Azure Hosted Service

Posted By:Dhananjay Kumar       Posted Date: April 02, 2011    Points: 200    Category: WCF    URL: http://www.dotnetspark.com  

Hos WCF Service Role in a hosted service is exactly the same as hosting an ASP.Net Web Role.

I am going to extend the previous article to publishing in a hosted service. 

Hosting a WCF Service Role in a hosted service is exactly the same as hosting in an ASP.Net Web Role.
  1. Login to Azure Development portal.
  2. Create a new hosted service. If you want you can upgrade any existing hosted service to host WCF Service role also.

See: Creating Hosted Service in Windows Azure 

3. To upgrade the hosted service, browse locally to: 


4. Right click on an Azure project and select Publish. 

5. Now while upgrading a hosted service, select the browse locally option and navigate to the folder containing the files.

6. Once publishing is done, you can navigate to the URL. On navigation you may get the error in the browser shown below: 


Do not be panic; instead just append Service1.svc to the URL and you will get the WCF Service Web Role up and running. 


7. We can consume the service in the exact same way thast we consume a normal WCF Service.
 Subscribe to Articles


Further Readings:


No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More Articles on C#, ASP.Net, Vb.Net, SQL Server and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend