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

  • Home
  • SEARCH
  • 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 6579757
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:56:16+00:00 2026-05-25T15:56:16+00:00

In my silverlight app I use service reference to wcf service. After I deployed

  • 0

In my silverlight app I use service reference to wcf service. After I deployed this project to my test IIS, I couldn’t see any .config file where all endpoint information is stored. That ServiceReferences.ClientConfig is packed in xap package. How would I deploy it to customer’s server then? I need a way to configure endpoint there. How do you do that?

  • 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-25T15:56:16+00:00Added an answer on May 25, 2026 at 3:56 pm

    Instead of trying to support editing the clientconfig file in the XAP, here is another approach.

    Add the web service endpoint address to the Silverlight InitParams in the HTML page that host the Silverlight application. Maybe set the initparams dynamically via ASP.NET. Programatically use this address when creating the client-side service proxy.

    Another option is to assume the web service is always in a relative directory to the hosting page. I used something like:

    new Uri(HtmlPage.Document.DocumentUri, new Uri("./MyService/MyService.svc", UriKind.Relative)); 
    

    Combining both options works well, if the InitParams are missing, I use a the relative path to the well known location (helpful in deployment/production). If the IntiParams have a endpoint, I use that (helpful in debugging/testing).

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

Sidebar

Related Questions

I try to consume WCF service in Silverlight project but in ass Reference dialog
After creating a Azure Project within my silverlight app and adding the existing service
When writing a Silverlight app hooked up to a WCF Web Service, the only
I have a WCF service I use to submit bugs for my project. Snippet
I use the following code in wcf ria services (Silverlight App): public partial class
I have a silverlight app that talks to a WCF service inside of an
I'm programming my first Silverlight app and it uses a Silverlight-enabled WCF service to
In my Silverlight 3 app, I just added a Service Reference to the Exchange
I've got a Windows Phone 7 Silverlight app that I am trying to use
I use VS2010, C# to develop Silverlight 4 app, I use following code in

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.