We use a CSharpProjectAssembly.
During the Startup of the Application a lot of assembly references (loaded from Application) will be added to the ProjectAssembly.
This works perfect.
Later in the Application a dynamic assembly will be created and is safed in the temp-Directory of the Admin User.
This dynamic created assembly should then be added to the project assembly as well.
Calling 'ProjectAssembly.AssemblyReferences.AddFrom(path)' will cause this exception:
It is illegal to reflect on the custom attributes of a Type loaded via ReflectionOnlyGetType
Strange enough this happens only on machines, where no Actipro License is installed.
Or is there another thing, that may be different?
Do you have any idea, what's the reason about this exception?
(In the dynamic created assembly are not any other special attributes as in the assemblies, added at the startup of the application)
Thanks for your really appreciated help!!