-
Notifications
You must be signed in to change notification settings - Fork 471
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Castle.DynamicProxy.ProxyGenerationException: Duplicate element: Castle.DynamicProxy.Generators.MetaMethod #596
Comments
Hi @TheReaLee (sorry, I accidentally hit the Close issue button), could you please provide a full repro, i.e. not just the code where the exception is reported, but also include the declarations for the referenced types. Thanks! |
Updated @stakx, let me know if you require more information |
Sorry @TheReaLee, I cannot piece together repro code that compiles without error.
Could you perhaps provide a downloadable & compilable Visual Studio solution that doesn't need any further puzzle action on our part? :-) |
I've re-tried producing the reported error using a variety of type proxying constellations, without any success. Closing this older issue as not reproducible. |
Same class names, in different projects both implementing the same interface with different namespaces. When using Mock.Object, the exception is thrown.
Castle.Core: 4.4.1
Moq: 4.16.1
.NETFramework: 4.7.2
TestClass
MyDataStoreCollection
TestFixture
IValidatorFactory
IValidator
ValidationResults taken from Nuget Microsoft.Practices.EnterpriseLibrary.Validation
IDataStoreCollection
IDataStore
IReportInstance
ReportingSchema ReportInstance (In project Reporting.csproj)
ReportingTenant schema ReportInstance (IN project ReportingTenant.csproj
IUnitOfWork
IDataContext
Stack Trace
The text was updated successfully, but these errors were encountered: