[Mono-list] Could not lookup zero argument constructor for class Ninject.StandardKernel

Robert Jordan robertj at gmx.net
Thu Mar 5 09:54:28 UTC 2015

On 04.03.2015 20:04, mimi wrote:
> For Mono, if I insert 'mono_runtime_object_init(instanceStandardKernel)', we
> are trying to execute  default argument-less ctor of StandardKernel that
> doesn't exist and I got the error which is normal.
> Here, how Mono will parse 'new StandardKernel()'? Default ctor or first ctor
> without passing anything? Are error messages I got related to this?

The exception is unrelated to how mono is invoking ctors :)

Some parts of the runtime require that mono_jit_exec() was executed.

Implement an empty "static void Main()" in your entry assembly and
execute it with mono_jit_exec() before doing other work.


More information about the Mono-list mailing list