如何在C#中的配置文件中更改URL Web服务? [英] How to change url web service in config file in c#?

查看:211
本文介绍了如何在C#中的配置文件中更改URL Web服务?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我的程序NET,当我编写此程序来解决计算机参与Web服务文件和程序配置时,我们将其添加到连接到该公司的Web服务中.

但是,当我们在新地址中安装程序和文件时,将使用已安装程序的先前地址配置文件,而未连接另一个运行新地址.

为了在应用程序环境中输入新地址以运行Visual Studio Web参考并更新程序,我们需要安装正确的可执行文件.

请帮助我!

Hi
My program. NET and when I wrote this program to address computer participate in Web service files and programs config we add it to the Web service is connected to the company.

But when we install programs and files in the new address will config file with the previous address that the program is installed and another run new address is not connected

In order to enter the new address in the application environment to run Visual Studio web reference and update the program and we have the correct executable file to install.

Please please help me!

推荐答案

您需要将Web服务URL放入配置文件(或数据库)中,以便任何客户端/用户都可以更改URL而无需需要更新/编译代码.
You need to put your web service URL into a configuration file (or database) so that any client / user can change the URL without the need to update / compile the code.


这篇关于如何在C#中的配置文件中更改URL Web服务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆