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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T12:21:16+00:00 2026-06-06T12:21:16+00:00

I have created a desktop application in WPF that I wish to supply to

  • 0

I have created a desktop application in WPF that I wish to supply to clients as a .exe file.

Currently the application has a web service referenced to it where the web service would be sitting on the clients web server.

There is a high possibility that the URL of the web service could change depending on the clients therefore is it possible to add an option for the user to add the service reference themselves once they know the web service URL?

In the app.config is where the endpoint address is set, so if when the application fired up, it presented the user with a text box to enter the url, then on button click the application updates the service reference. Is this possible?

I have come across lots of different articles however was not sure if it was possible without have to recompile the code?

  • 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-06-06T12:21:18+00:00Added an answer on June 6, 2026 at 12:21 pm

    Assuming it’s a WCF service, if it’s called Service1 you can set its address like this:

    Service1Client wcfServiceClient = new Service1Client();
    wcfServiceClient.Endpoint.Address = new System.ServiceModel.EndpointAddress("your uri here");
    //now you will invoke the service in the address you defined
    

    an ASMX service (still called Service1 in this example for consistency) can be setup like this:

    Service1 asmxService = new Service1();
    asmxService.Url = "your uri here";
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have created a beautifully designed .NET WPF desktop application. We are installing the
I'm writing a WPF desktop application and have a view that needs to look
I have created a solution that comprise of a WPF application and a mobile
I have a WPF desktop application that uses a custom database for storage. I
I have created one web service that will may called from web using jQuery
Im building a WPF 3.5 desktop app that has a self-hosted WCF service. The
I created a WPF Desktop application and have tried deploying it to vista without
I have created an application for Mac OS X, and I have a desktop
I created a desktop application in C#/WPF which connects to a SQL Server 2008
I have created an desktop application in Netbeans 7.0 and i have the files,

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.