Hi Chuck, > Assembly assembly = Assembly.GetCallingAssembly() > foreach (String str in > ***assembly.GetManifestResourceNames())***
Your code is trying to find all the resources from the calling assembly. When a mock object calls this method, it will fail because dynamic assembly, which all mocks reside in, doesn't support resources. Without knowing your intend I cannot say much but you can check if the calling assembly is dynamic assembly, if yes then don't bother to call GetManifestResourceNames as it won't have any resource anyway. Use: If (assembly.ManifestModule is System.Reflection.Emit.ModuleBuilder) HTH, Kenneth -- You received this message because you are subscribed to the Google Groups "Rhino.Mocks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rhinomocks?hl=.
