Re: System.Configuration does not support config files for libraries.
- From: Bill McCormick <wpmccormick@xxxxxxxxxxxxxxxx>
- Date: Mon, 10 Nov 2008 10:22:29 -0600
Steven Cheng wrote:
Hi Bill,Thanks Steven. I think that is indeed for what I'm looking. However, I expected this to be a little more trivial that it appears to be.
Seems what you want to do is sharing some custom classes/types (defined in a class library) between the WCF service and client application. For WCF there is type sharing support. Here are two artifcles which has mentioned some information on this;
#Type sharing in WCF service reference
http://blogs.msdn.com/lifenglu/archive/2007/05/09/type-sharing-in-wcf-servic
e-reference.aspx
#Sharing WCF Collection Types between Service and Client
http://www.codeproject.com/KB/WCF/WCFCollectionTypeSharing.aspx
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and suggestions about how we
can improve the support we provide to you. Please feel free to let my manager know what you think of
the level of service provided. You can send feedback directly to my manager at: msdnmg@xxxxxxxxxxxxxx
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications.
Note: MSDN Managed Newsgroup support offering is for non-urgent issues where an initial response from
the community or a Microsoft Support Engineer within 2 business day is acceptable. Please note that
each follow up response may take approximately 2 business days as the support professional working
with you may need further investigation to reach the most efficient resolution. The offering is not
appropriate for situations that require urgent, real-time or phone-based interactions. Issues of this
nature are best handled working with a dedicated Microsoft Support Engineer by contacting Microsoft
Customer Support Services (CSS) at http://msdn.microsoft.com/en-us/subscriptions/aa948874.aspx
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------From: Bill McCormick <wpmccormick@xxxxxxxxxxxxxxxx>libraries.
User-Agent: Thunderbird 2.0.0.17 (Windows/20080914)
MIME-Version: 1.0
Subject: Re: System.Configuration does not support config files forReferences: <egIE#lVQJHA.1164@xxxxxxxxxxxxxxxxxxxx><237DB42A-89A4-47D2-84D9-26B664781AF3@xxxxxxxxxxxxx>
Nicholas Paldino [.NET/C# MVP] wrote:Bill,Well, I'm referring to WCF in general. Thanks you.
I assume you are referring to WCF given the nature of your previous post.
Assuming that, you are confusing the config file (which is just an XML file with config info) with the assembly itself (the DLL). You can easily distribute a DLL to both sides (client and server). It's the config file you can't share (well, in WCF's case, you actually could assuming you had no clients in the service, and no other services in the client).
I guess I'm now left with two nagging questions:
1. Why is type sharing frowned upon?
2. How can a client app be written, using intellisense, without type sharing?
Thanks,
Bill
.
- Follow-Ups:
- Re: System.Configuration does not support config files for libraries.
- From: "Steven Cheng"
- Re: System.Configuration does not support config files for libraries.
- References:
- System.Configuration does not support config files for libraries.
- From: Bill McCormick
- Re: System.Configuration does not support config files for libraries.
- From: Nicholas Paldino [.NET/C# MVP]
- Re: System.Configuration does not support config files for libraries.
- From: Bill McCormick
- Re: System.Configuration does not support config files for libraries.
- From: "Steven Cheng"
- System.Configuration does not support config files for libraries.
- Prev by Date: Re: WinForms manually calling SelectedIndexChanged on combobox
- Next by Date: Re: List, Dictionary or something else?
- Previous by thread: Re: System.Configuration does not support config files for libraries.
- Next by thread: Re: System.Configuration does not support config files for libraries.
- Index(es):
Relevant Pages
|
Loading