开发者

Loading the WCF configuration from different files on the client side

开发者 https://www.devze.com 2023-02-25 11:44 出处:网络
A common problem in WCF that many people face is the impossibility of loading the client configuration from different configuration files.

A common problem in WCF that many people face is the impossibility of loading the client configuration from different configuration files.

This is a common scenario when the developer wants to deploy some binaries with along with an independent configuration file (Which may be in a resource file also or another configuration file) to avoid modifyin开发者_StackOverflow社区g the main configuration file.

I have found two references:

http://weblogs.asp.net/cibrax/archive/2007/10/19/loading-the-wcf-configuration-from-different-files-on-the-client-side.aspx

http://social.msdn.microsoft.com/forums/en-US/wcf/thread/f33e620a-e332-4fd4-ae21-88c750437355/

which is the best solution about it ??

any suggestions for a the best solution ? I use VS 2008 and .NET 3.5.


The first link (blog post) is more relevant to your situation. Your only other option would be to use WCF Discovery to discover your endpoint and configuration at runtime, but that approach is certainly more work and can get complicated in managed mode.

0

精彩评论

暂无评论...
验证码 换一张
取 消