Issue deploying WCF service to Web Hosting site

Posted on 2010-01-07
Last Modified: 2013-11-30
Hi there

I created a WCF service to enable my silverlight application to communicate with SQL Server. Everything works fine on dev machine but when I upload the service to my hosted website ( i get the following error when trying to reference.

The type 'XXXXXXX',provided as the Service attribute value in the ServiceHost directive could not be found

any ideas??

Many thanks
Question by:Springbok37

    Author Comment

    Also, i have copied the DLL from the Bin directory to the Bin directory of the hosted website.
    LVL 35

    Expert Comment

    by:Miguel Oz

    Also if you are using IIS 7.0 check here:

    let me know your host OS/IIS version/how do create app or virtual folder for your wcf service

    Author Comment

    I am using a web hosting site and i dont have access to IIS or the GAC. They have informed me that the version of IIS is IIS7.

    Author Comment

    I am deploying the WCF service to a sub domain to my hosted website. I am deploying the code via FTP.
    LVL 35

    Accepted Solution

    Unfortunately you need to have access or have your web provider follow the steps on  the link.
    I will check with them, that they have the latest .net 3.5 SP1 installed on the server and is properly setup and what is the setup of your virtual directory to see if you have all the appropiate settings.
    Then I will check my config file. Here are some links on how your WCF needs to be configured in IIS:

    Author Closing Comment

    sorry for no response. i have been away on holiday. Many thanks for your input!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
    Even if you have implemented a Mobile Device Management solution company wide, it is a good idea to make sure you are taking into account all of the major risks to your electronic protected health information (ePHI).
    After creating this article (, I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    758 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now