- Home /
Reflection Type Load Exception
Hi,
I'm using several .dlls in my unity project. They've been working ABSOLUTELY fine up until a few minutes ago when I started getting this error: http://screensnapr.com/v/Ks8z8Z.png
What is the problem here?
Thanks, Christian
I am getting the same error, I only get it when I try to build my project to flash. Any help would be appreciated.
@kamilslawicki: this is not an answer!
I've converted it to a comment
Answer by Christian Stewart · Feb 16, 2012 at 02:52 PM
I actually solved this problem by removing one of the dlls I had in the project that I did not produce. However, it is probably a good idea to look into the cause of this error.
Thanks!
Answer by Ashkan_gc · Feb 16, 2012 at 02:23 PM
Well, Reflection is not supported in Flash and may not work well in nacl builds (not sure about nacl). If you are using 3.5 and a mobile build and have striping enabled then it might not work because of a new change in unity's way of striping assemblies. turn off striping and you should be safe.
Hi, this isn't a mobile build and its all being done in Unity. DLL produced with Visual Studio 2011 C# Library type project.
So clearly one of the things that you re doing in that DLL compiles in a way which is not compatible with mono version of unity. vs2011's default target is .NET 4.5 which is not supported in unity's mono version and vs2011 is a beta software which means not suitable for production. if you set the target platform as .NET 3.5 or lower then you should not have problems in theory cause all other reflection codes work well.