ReflectionException - EventDispatcher has no constructor. Is it an interface?

21 views
Skip to first unread message

Mike C

unread,
Sep 10, 2019, 4:54:53 PM9/10/19
to StrangeIoC
Hi,

I'm getting a ReflectionException when publishing to webGL.

I found a previous post with the same error, and have followed the advice given there (added a link.xml file and modified some code), but I'm still getting the error.

Strange version is the latest from GitHub (Readme.md says v0.7.0 Just the code, but perhaps the readme needs updating). Unity 2019.1.14f1

Here's the full error from the browser console:

ReflectionException: The reflector requires concrete classes.
Type strange.extensions.dispatcher.eventdispatcher.impl.EventDispatcher has no constructor. Is it an interface?
 at strange
.extensions.reflector.impl.ReflectionBinder.mapPreferredConstructor (strange.extensions.reflector.api.IReflectedClass reflected, strange.framework.api.IBinding binding, System.Type type) [0x00000] in <00000000000000000000000000000000>:0

(Filename: currently not available on il2cpp Line: -1)

And here is my link.xml file which is in the root of the Assets folder

<linker>
  <assembly fullname="StrangeIoC">
    <namespace fullname="strange.*" preserve="all"/>
  </assembly>
</linker>  

I've used Strange for years and found it incredibly helpful, but this is the first time I've used it in webGL so any help would be hugely appreciated. Thanks!
Reply all
Reply to author
Forward
0 new messages