You will normally get this sort of error when a ModuleBuilder has already been 'compiled', or a TypeBuilder has already been 'compiled'.

I would check where such things happen. Also, a stack trace may be handy in this case.


There is a bug report here, not sure though if it is the same issue that you experience. Apparently this has been fixed in .NET 3.5 SP1.

Related Articles