I know this is bit late and you may have found the solution, but I am 
posting the links to solution which worked for me for the sake of closure 
so that anyone having the same issue can fix it straight-away rather than 
search for them like me! 

http://t8536.codeinpro.us/q/5080fe394f1eba38a4dd72f7
http://stackoverflow.com/questions/3444581/mocking-com-interfaces-using-rhino-mocks



On Tuesday, August 11, 2009 6:39:18 AM UTC+1, C wrote:
>
> I started a test project that mimics the project from the 'WCF, 
> Mocking and IoC Oh My!' post Ayende made on his blog.  I'm using the 
> latest version of Rhino Mocks/WCF and get the following error after 
> updating your sample project: 
>
> The service class of type 
> IOrderServiceProxy28e3845156f14f16b2da0c47a1c43749 both defines a 
> ServiceContract and inherits a ServiceContract from type 
> WCF.TDD.IOrderService. Contract inheritance can only be used among 
> interface types.  If a class is marked with ServiceContractAttribute, 
> it must be the only type in the hierarchy with 
> ServiceContractAttribute.  Consider moving the 
> ServiceContractAttribute on type WCF.TDD.IOrderService to a separate 
> interface that type WCF.TDD.IOrderService implements. 
>
> It looks like the attributes are cloned now, which causes the 
> collision...  Any thoughts on how to get around this? 
>
> Going back to the version of Rhino mocks in the project resolves the 
> issue, but I would like to use the latest version if possible. 
>
> Thanks, 
> C 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Rhino.Mocks" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/rhinomocks.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to