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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T23:08:34+00:00 2026-05-14T23:08:34+00:00

I have been working on a Silverlight app that consumes a WCF service. [on

  • 0

I have been working on a Silverlight app that consumes a WCF service. [on Visual Studio]

as a matter of simplicity I created a WCF service in the project itself [as-in I didnt host it in IIS, but let the build-in webdev server in VS do it for me]

It works well, now I want to deploy it on IIS 7.0, can you tell me If i would need to host the service independently and then the remaining stuff or if I just publish the website, the service would be hosted too and the Silverlight client would be able to communicate with the service.

Please help!

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-05-14T23:08:34+00:00Added an answer on May 14, 2026 at 11:08 pm

    You basically need

    • a virtual directory in IIS 7
    • a SVC file (service file) that instructs IIS how to instantiate your service

    You basically have three options to deploy your service implementation:

    • you can put your service implementation into the code-behind file of the SVC file – that would be my least favourable option – basically don’t do it – it gets messy and offers no benefit

    • you can put your service class file (the MyService.cs file) and the interface file (IMyService.cs) into the App_Code directory (if you’re using a Web Site project type) – again, I don’t particularly like this approach

    • your best option: put your service contract (the interface) and your service implementation into a separate class-library assembly for that service, and deploy that MyService.dll into the .\bin directory below the virtual directory where your SVC file lives.

    Then add a *.svc file (pure text file) to your virtual directory, which contains:

    <%@ServiceHost language="c#" Debug="true" Service="MyService" %>
    

    And of course, you need the appropriate web.config entries – but I’m sure you already have those, right?

    Your service address now is:

    http://YourServer/VirtualDirectory/YourService.svc
    

    For more info, see How to: Host a WCF Service in IIS

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

Sidebar

Related Questions

I have been working on an object class for my iPhone app that lazy
I've been working on a home project using VS2008. It involves WCF and Silverlight.
I have been working on some games in Silverlight. However, the community and portal
I have been working on this app for at least 3-4 months and just
I have been working on a project in C# (.net4). Project pretty much allows
I have been working on a project on and off, but I haven't touched
I have been working on a huge ETL project with 150+ tables and during
I have been working fine with MVVM Light on a silverlight 4 Windows Phone
I've been working on a Silverlight application. I just noticed that the .xap file
I have created a silverlight 5 project and added a textbox control to a

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.