This code:
DomainThingy^ thingy = (DomainThingy^)_scriptDomain->CreateInstanceAndUnwrap(Assembly::GetExecutingAssembly()->FullName, DomainThingy::typeid->FullName);
Produces this error:
System.InvalidCastException was unhandled
Message: Unable to cast transparent proxy to type 'Hook.DomainThingy'.
Does anyone knows how to fix it?