No suitable constructor found
This page was created by Hans.karlsen@mdriven.net on 2018-09-01. Last edited by Edgar on 2025-01-20.

Working with CodeDress and if you get this error "No suitable constructor found" check the following:

In the GAC check that you only have the current Eco.Interfaces - and not any old copies of the assembly:

C:\Windows\Microsoft.NET\assembly\GAC_MSIL\Eco.Interfaces

Also check the CodeDress assemblies (\ModelCodeAssemblies) so that you do not have any Eco.* assemblies there - the linker will wrongfully mix in these instead of the ones in your running application (Turnkey or MDrivenServer)

When the linker tries to resolve the reference to Eco.Interfaces - it may end up with the wrong one and then nothing matches up correctly and we have no access to the correct contstructor.