动态Web引用URL c# [英] Dynamic Web Reference URL c#

查看:288
本文介绍了动态Web引用URL c#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述







我正在开发一个网络项目,它正在引用一个图书馆项目。在我添加的项目中一个WCF项目。截至目前,URL行为是静态的。但问题是,当我想改变路径时,我必须在属性中更改它。可以选择将行为更改为动态。但是,我必须做的所有更改才能访问Web服务。在此先感谢

Hi,


I am working on a web project, which is refering a library project.Inside that project i have added a WCF project. As of now the URL behavior is static. But the problem is that when i want to change the path i have to change it in the properties. There is an option to change the behavior to dynamic . But what all changes do i have to do so as to access the web service. Thanks in advance

推荐答案

得到答案。只需要在配置文件中设置一个键并在Reference.cs文件中将其设置为url:)



Happy Coding Everyone
Got the answer. Just need to set a key in config file and set it as url in the Reference.cs file : )

Happy Coding Everyone


这篇关于动态Web引用URL c#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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