NameValueCollection Issue In Proxy Generation

Posted by N W. annor-adjei on Stack Overflow See other posts from Stack Overflow or by N W. annor-adjei
Published on 2012-06-08T22:38:48Z Indexed on 2012/06/08 22:40 UTC
Read the original article Hit count: 245

Filed under:

I have a proxy generation problem I am building my own customised XMLMembershipProvider in WCF. The code runs well in ASP.Net and am consuming the same code in WCF for silverlight, My class inherits the Membership provider hence have implemented all the MembershipProvider methods. Now, consumung this methods in WCF requires also the Initialize Method having NameValueCollection as passin parameter, which is the cause of the problem because WCF does not supporteCollection serialization.

when the initialize method is marked as OperationContract, Proxy class does not get generated. I could have use Dictionary but that is impossible here bacause the base class's initialize method accepts two parameter one of which should be a NameValueCollection.

If i don't mark the Initialize as OperationContract, the proxy class is generated with all the methods but i realized i still need the Initialize marked as Operation contract to start the provider.

Has any one got any idea about the use of NameValueCollection in WCF and the work around this problem

Thank you. Nicholas

© Stack Overflow or respective owner

Related posts about wcf-security