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 5847421
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T12:42:58+00:00 2026-05-22T12:42:58+00:00

I have created a new wcf4 web application and added a new wcf service.

  • 0

I have created a new wcf4 web application and added a new wcf service.
I created a subfolder and moved the service created into the subfolder.

e.g.

ROOT
ROOT/Business/V1/BusinessV1.svc

I have deployed the service onto my IIS7 enviroment however I keep getting this error

The type
‘MyNameSpace.WebWCF.Business.V1’,
provided as the Service attribute
value in the ServiceHost directive, or
provided in the configuration element
system.serviceModel/serviceHostingEnvironment/serviceActivations
could not be found.

My service file looks like this

<%@ ServiceHost Language="C#" Debug="true" 
    Service="MyNameSpace.WebWCF.BusinessV1" CodeBehind="BusinessV1.svc.cs" %>

The code behind looks like

namespace MyNameSpace.WebWCF
{
  public class BusinessV1 : IBusinessV1
  {
  }
}

My contract looks like

namespace MyNameSpace.WebWCF
{
   [ServiceContract]
   public interface IBusinessV1
} 

Finally my web.config

<system.serviceModel>
   <services>
      <service name="MyNameSpace.WebWCF.Business_v1">
         <endpoint 
             address="http://mydomain.com/Business/v1/BusinessV1.svc" 
             binding="basicHttpBinding" 
             bindingConfiguration="" 
             contract="MyNameSpace.WebWCF/IBusinessV1" 
             listenUri="/" isSystemEndpoint="true" />
      </service>
   </services>
   <behaviors>
      <serviceBehaviors>
         <behavior name="">
            <serviceMetadata httpGetEnabled="true" />
            <serviceDebug includeExceptionDetailInFaults="false" />
         </behavior>
      </serviceBehaviors>
   </behaviors>
   <serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
</system.serviceModel>

Can someone please help me with what I am doing wrong? its driving me crazy.

  • 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-22T12:42:59+00:00Added an answer on May 22, 2026 at 12:42 pm

    Well one thing is: your service name isn’t consistent.

    In your service implementation class, you have:

    namespace MyNameSpace.WebWCF
    {
      public class BusinessV1
    

    and in your *.svc file, you have the same qualified name:

    Service="MyNameSpace.WebWCF.BusinessV1"
    

    but in your web.config, you use:

    <service name="MyNameSpace.WebWCF.Business_v1">
    

    Your service implementation is the one that defines the service name – fully qualified with the namespace: MyNameSpace.WebWCF.BusinessV1

    So you need to use this fully qualified name – and exactly that – in your *.svc file (OK!) and your web.config:

    <service name="MyNameSpace.WebWCF.BusinessV1">
    

    Use MyNameSpace.WebWCF.BusinessV1 insstead of MyNameSpace.WebWCF.Business_v1.

    If that name doesn’t match, the WCF runtime won’t find the config you’ve specified and will fall back to system defaults

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

Sidebar

Related Questions

I have created a new WCF service library type project. I have created a
I'm using Silverlight 4 on IE 8. I have created a new Silverlight web
I'm fairly new to WCF development and have run into a couple problems whilst
I have created a new Web project (.Net 3.5) and I've removed the original
I am using VS 2008. I have created a new Asp.net web site project
We have created a new List View Style that shows thumbnails from a picture
I have created a new solution with a minimal amount of code that represents
I m new to use ankhSVN and having issues. I have created some new
Does a new SessionFactor y and Session object have to be created for each
We have an internal .NET case management application that automatically creates a new case

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.