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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T22:05:21+00:00 2026-05-13T22:05:21+00:00

I have searched online for a solution, but have yet to find one that

  • 0

I have searched online for a solution, but have yet to find one that works.

I have a Silverlight application that uses a WCF web service.

Everything runs fine on my development environment.

When I publish to my DiscountASP.NET account – the web service gives me the following exception:

“Server Error in ‘/eLearning/Services’ Application.
The type ‘eLearning.Web.Services.Learning, eLearning.Web’, provided as the Service attribute value in the ServiceHost directive could not be found. “

Please refer to the actual exception at:

http://www.christophernotley.com/eLearning/Services/Learning.svc

I have made “eLearning” a web application – and moved the web.config to the root directory.

I have also confirmed that in the markup for the web service, that the service property states “eLearning.Web.Services.Learning, eLearning.Web”.

Any ideas as to what I am doing wrong?

Thanks.

Chris

Here is the markup for the web service:

<%@ ServiceHost Language="C#" Debug="true" Factory="System.Data.Services.DataServiceHostFactory, System.Data.Services, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Service="eLearning.Web.Services.Learning, eLearning.Web" CodeBehind="Learning.svc.cs" %>

Here is the System.ServiceModel web config:

<system.serviceModel>
    <behaviors>
        <endpointBehaviors>
            <behavior name="RestBehaviorConfig">
                <webHttp/>
            </behavior>
            <behavior name="webBehavior">
                <webHttp/>
            </behavior>
        </endpointBehaviors>
        <serviceBehaviors>
            <behavior name="DebugEnabled">
      <serviceMetadata httpGetEnabled="true"/>
                <serviceDebug includeExceptionDetailInFaults="true"/>
            </behavior>
        </serviceBehaviors>
    </behaviors>
    <bindings>
        <customBinding>
            <binding name="customBinding0">
                <binaryMessageEncoding/>
                <httpTransport/>
            </binding>
        </customBinding>
    </bindings>
    <serviceHostingEnvironment aspNetCompatibilityEnabled="true">
        <baseAddressPrefixFilters>
    <add prefix="http://www.christophernotley.com/"/>
        </baseAddressPrefixFilters>
    </serviceHostingEnvironment>
    <services>
  <service behaviorConfiguration="DebugEnabled" name="eLearning.Web.Services.Learning">
    <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
  </service>
    </services>

</system.serviceModel>
  • 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-13T22:05:22+00:00Added an answer on May 13, 2026 at 10:05 pm

    Well, in a WCF scenario, your service URL is determined by three things:

    • the name of the server
    • the virtual directory (and any subdirectories) where the svc-file lives
    • the name and extension of the svc file itself

    In your case, the URL is

    http://www.christophernotley.com/eLearning/Services/Learning.svc
    

    So this begs the question:

    • is /eLearning really defined as a virtual directory?
    • is there a /Services subdirectory below your virtual directory?
    • is the name of the *.svc file correct?
    • where is the actual service code located? Do you have an assembly with the service implementation, and is it located in a place that is accessible to the *.svc file? (it’s directory, a .\bin subdirectory)? Or is the code in a App_Code directory? Where is this directory??

    UPDATE:

    I’m a bit confused about your setup….. you say /eLearning/Services is an application – a virtual application defined in IIS, right?

    In your Learning.svc file, you define a code-behind file of Learning.svc.cs – so does your service code exist there? (because in another statement, you mention a .\bin directory under /eLearning – is your service compiled into an assembly that’s deployed to that bin directory??)

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

Sidebar

Related Questions

I need a CORE that will perform AES-128 Encryption/Decryption. I have searched online but
I have searched for a general solution to this but only find answers to
I Have searched a lot to find the solution but i am unable to
I have searched online and tried the below solution but it does not work;
I have searched online but all the answers I have found were very primitive.
I realize this is a basic question but I have searched online, been to
I have searched all morning and yesterday afternoon and still cannot find an solution
(Note that I've searched online for the warnings I'm describing below, and have come
I have searched online for how to do this but I don't understand. The
I've searched online and this website alike for a simple and adaptable solution but

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.