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

  • Home
  • SEARCH
  • 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 6576541
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:31:30+00:00 2026-05-25T15:31:30+00:00

I created a class library with two wcf services in them. When adding a

  • 0

I created a class library with two wcf services in them. When adding a wcf item it did not add a svc file.

Do I have to manually add them to my main web project?

How might I go about this?

  • 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-05-25T15:31:31+00:00Added an answer on May 25, 2026 at 3:31 pm

    Which version of .NET are you using? As of 4.0, the *.svc file is no longer needed for IIS-hosted WCF services.

    As Bengel indicated, 4.0 has made configuring WCF services a lot easier, by providing default bindings and endpoints.

    It’s not clear in your question whether your web site is going to being hosting the WCF service, or simply using it (as a client), though since you’re looking for the .svc file I’m leaning towards the former.

    In WCF 3.5, you’ll need to manually add a *.svc file as Bengel indicated in his answer. The easiest way to do this is to add a new text file, and change the extension yourself.

    You’ll also need to configure the binding(s) and endpoint(s) and all that other good stuff.

    If you’re using WCF 4.0, you don’t need the *.svc file, and you can opt to use the default bindings/endpoints that WCF provides.

    The service address is based on the base address of the host, and one default endpoint will be created for each unique binding/contract (so if you have two services running on NetTcp, you’ll get 2 default endpoints, and if you have two services running on NetTcp and WsHttpBinding, you’ll get 4 default endpoints).

    You can specify values for a binding and still have it be the default binding by ommitting the name attribute.

    There’s a good writeup on all of this – A Developer’s Introduction to Windows Communication Foundation 4 that goes into more detail with examples.

    Long story short – if you’re using WCF 4.0, you don’t need the .svc file. If you’re using WCF 3.5, you’ll need to add the .svc file to your web site.

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

Sidebar

Related Questions

I have created a RIA services class library project and things are not going
I have created a class library in VB .NET. Some code in the library
I have created a class for a dashboard item which will hold information such
I have created a C# class file by using a XSD-file as an input.
I created a WCF service library project in my solution, and have service references
I have created a VB.NET 2008 Class Library that has, for the most part,
I am writing a service using wcf. I have created a solution with two
I have a class library that I created using the Class Library project template.
I have created UITableCellView class called NoteCell . The header defines the following: #import
I have a collection of classes that inherit from an abstract class I created.

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.