Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7729605
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T06:00:31+00:00 2026-06-01T06:00:31+00:00

I created my first WCF service and tested it on my computer, and it

  • 0

I created my first WCF service and tested it on my computer, and it works.

The files present are an interface, an implementation of that interface, and an app.config file.

Now that it is time to host this on a real server with IIS, I was told IIS looks for a .svc file when receiving incoming calls.

Here is what I found:

WCF services hosted in IIS are represented as special content files (.svc files) inside the IIS application. This model is similar to the way ASMX pages are represented inside of an IIS application as .asmx files. A .svc file contains a WCF-specific processing directive (@ServiceHost) that allows the WCF hosting infrastructure to activate hosted services in response to incoming messages.

Can someone please guide me as to how I can create this file so that I may host it?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T06:00:33+00:00Added an answer on June 1, 2026 at 6:00 am

    The thing you need to keep in mind is that IIS is first-and-foremost a web server, and WCF host secondly.

    The webserver’s job is to render data based on an incoming request. Most of this data is content (the request path correlated directly to a file on the server) but in the case of a WCF service IIS needs to know where to go from here (thus the SVC file and the “directives” to IIS to spin up your service).

    All the SVC file is doing is saying that at /x/y/z.svc I have a WCF service which is capable of a lot more than just server-side pages and content files. So please spin it up, make it available and allow my incoming connections to be processed.

    If this were a WCF service hosted on it’s own dedicated port, this would be a different story because it’s no longer contending with additional requests for /Styles/base.css in addition to /MyService/GetSomeObject/.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I created my first WCF RESTful service with just one GetData, and it works
I'm attempting to create my first WCF service. I've created the service and now
I created WCF service that returns a custom object called XmlElementTreeNode. This is what
I've created a .NET WCF service that is intended to always be over HTTPS.
I have just created my first WCF service. Now I would like to do
I'm programming my first Silverlight app and it uses a Silverlight-enabled WCF service to
I am using WCF for the first time. I Have successfully created the service
I'm writing my first WCF service (as WCF application, that is hosted inside my
I have built a WCF Service that is being consumed by a Silverlight app.
I am trying to write my first WCF project. I have created a project

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.