browse by category or date

I never professionally dealing with WCF in my working life. All my previous projects were not using WCF. By using, I mean providing services for other systems to consume. If any, they were only consuming web services from other systems. So WCF is one of many areas in .NET-world which I am yet to explore deeply.

But why WCF, and why now? I myself consider this decision to pick up WCF now is quite silly. First, that WCF is no longer actively develop by Microsoft. Second, Microsoft is already working on the replacement (WCF Core). But since it’s not yet production-ready, Microsoft is currently recommending gRPC for production.

But in Singapore, many businesses (especially Government-linked) are fully Microsoft-shop and heavily using WCF. That is my conclusion after seeing many job postings ask for WCF skills. So this is my effort to improve my professional skill, and widen my possible career-net 😀

In order to be able to host WCF projects in my laptop (Windows 10 upgraded to Windows 11), I need to enable IIS. I did stumbled here and there in my progress, so I write it down here for my own future reference. And hopefully, it will also help others. So here’s what I’ve learned.

How To Enable IIS

  1. Press Window button
  2. Type turn Windows features on or off
  3. Select and expand “Internet Information Services”
  4. Select and expand “World Wide Web Service”
  5. Select and expand “Application Development Feature”. Select the .NET version to work with.
  6. Expand “.NET Framework 4.8 Advanced Services”
  7. Select and expand “WCF Services”

Now we need to verify that IIS is able to serve .svc files (Web Service Descriptor, shown below).

<%@ ServiceHost Language="C#" Debug="true" 
    Service="Service" 
    CodeBehind="~/App_Code/Service.cs" %>
  1. Press Window + R keys
  2. Type inetmgr, then press Enter
  3. Click “Handler Mappings”
  4. Verify that *.svc handlers are listed.

That’s all friends. I hope it helps. Cheers!

GD Star Rating
a WordPress rating system
How To Host WCF In Windows 10 / Windows 11, 3.0 out of 5 based on 1 rating

Possibly relevant:

About Hardono

Howdy! I'm Hardono. I am working as a Software Developer. I am working mostly in Windows, dealing with .NET, conversing in C#. But I know a bit of Linux, mainly because I need to keep this blog operational. I've been working in Logistics/Transport industry for more than 11 years.

Incoming Search

.net, iis, wcf

2 Trackbacks

 

No Comment

Add Your Comment