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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:18:31+00:00 2026-05-27T10:18:31+00:00

The goal here is to be able to step into the WCF service code,

  • 0

The goal here is to be able to step into the WCF service code, as well as the Silverlight app code.

  1. File new project > MvvmLight(SL4)
  2. Add new project > WCF Service app
  3. Add service ref to new service in SL proj

  4. In Model\DataService.cs replace GetData with the code below

    public void GetData(Action<DataItem, Exception> callback)
    {
        // Use this to connect to the actual data service
    
        //var item = new DataItem("Welcome to MVVM Light");
    
        var client = new ServiceReference1.Service1Client();
        client.GetDataCompleted += (s, e) =>
        {
            var userCallback = e.UserState as Action;
    
            var item = new DataItem(e.Result);
    
            userCallback(item, null);
        };
        client.GetDataAsync(123, callback);
    }
    
  5. Place a breakpoint in the GetData method of Service1.svc.cs

  6. F5 to start debugging.

You’ll get a dialog saying you can’t debug.

“The Silverlight project you are about to debug uses web services. Calls to the web service will fail unless the Silverlight project is hosted in and launched from the same web project that contains the web services.”

What do I need to change to allow me to debug the WCF service?

  • 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-27T10:18:32+00:00Added an answer on May 27, 2026 at 10:18 am

    It sounds like your Silverlight application and WCF Service application are using two different ASP.Net projects within your solution. To debug them in a single solution they’d need to be in the same ASP.Net website.

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

Sidebar

Related Questions

I have a project here the goal is to merge multiple Access DB's into
Here is my ultimate goal... to take this xml file.. <?xml version=1.0?> <Songs> <Song>
For example, my goal is to test the code given here: PHP script that
Here is my goal: I would like to be able to report various metrics
My goal is to be able to, being given a file/folder and a password,
I have some code here. I recently added this root_id parameter. The goal of
Longtime reader, first-time poster here. My goal: To be able to take advantage of
Couple questions here: My end goal is to password protect the file logged_in.php. Note:
having a bit of a problem with a recent project. The goal here is
My goal here is to create a very simple template language. At the moment,

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.