2
Vote

The invoked member is not supported in a dynamic assembly.

description

Hello,
If your solution contains some dynamic assemblies, you can get an exception:
[NotSupportedException: The invoked member is not supported in a dynamic assembly.]
System.Reflection.Emit.InternalAssemblyBuilder.GetManifestResourceStream(String name) +56

To fix this you must add the check "asm.IsDynamic" to this file
Source\EFProviderWrapperToolkit\EntityConnectionWrapperUtils.cs

at the line 184

foreach (Assembly asm in assembliesToConsider.Where(asm => !IsEcmaAssembly(asm) && !IsSystemAssembly(asm) && !asm.IsDynamic))

Please read this thread, to get an explanation, why it is necessary:
Here

Thank you for this very useful project, - it helps us really to get track of what is going wrong with sql queries on the database side.
Sincerely,
Yevgeniy Fliegel

comments

MatteoSp wrote Mar 26, 2013 at 1:03 PM

The proposed fix worked for me.