1

Closed

Exception when using NMock3 - Beta 6, .NET 3.5

description

Hi,
 
when I use the binary for .Net 3.5 I get the exception
"Type 'foo' from assembly 'DynamicProxyGenAssembly2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' is attempting to implement an inaccessible interface"
The mocked interface is public an defined in the same assembly like the mock-call.
 
Compiled for .Net 4 with a reference to the .Net 4-mock-binary my little test works fine.
 
Regards,
Dirk
Closed Jul 27, 2011 at 8:28 PM by pwolfe
Closing because of no response since 9/16/10. Suggest to try with current version.

comments

pwolfe wrote Sep 16, 2010 at 6:19 PM

Your setup seems right. Can you provide a code sample?

wrote Jul 27, 2011 at 8:28 PM

wrote Feb 21, 2013 at 11:12 PM

wrote May 16, 2013 at 10:41 AM