Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When using Unity, gives "System.Reflection.ReflectionTypeLoadException: The classes in the module cannot be loaded." error. #320

Open
Kampfkarren opened this issue Dec 18, 2016 · 1 comment

Comments

@Kampfkarren
Copy link

Hello. When I put websocketsharp.dll into my Unity project, I get this error.

Unhandled Exception: System.Reflection.ReflectionTypeLoadException: The classes in the module cannot be loaded.
at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (bool)
at System.Reflection.Assembly.GetTypes () [0x00000] in :0
at Mono.CSharp.RootNamespace.ComputeNamespaces (System.Reflection.Assembly assembly, System.Type extensionType) [0x00000] in :0
at Mono.CSharp.RootNamespace.ComputeNamespace (Mono.CSharp.CompilerContext ctx, System.Type extensionType) [0x00000] in :0
at Mono.CSharp.GlobalRootNamespace.ComputeNamespaces (Mono.CSharp.CompilerContext ctx) [0x00000] in :0
at Mono.CSharp.Driver.LoadReferences () [0x00000] in :0
at Mono.CSharp.Driver.Compile () [0x00000] in :0
at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] in :0

Missing method .ctor in assembly /media/boyned/ExtraSpace/BattleHatsCCG/Battle Hats CCG/Assets/Plugins/websocket-sharp.dll, type System.Runtime.CompilerServices.ExtensionAttribute
The class System.Runtime.CompilerServices.ExtensionAttribute could not be loaded, used in websocket-sharp
Can't find custom attr constructor image: /media/boyned/ExtraSpace/BattleHatsCCG/Battle Hats CCG/Assets/Plugins/websocket-sharp.dll mtoken: 0x0a000001

@Kampfkarren
Copy link
Author

It seems this only happens when the dll's are used. I put the actual source files in (and removed the bin and obj folders) and it works fine now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant