- Home /
DLL errors
InvalidProgramException: Invalid IL code in ***:.cctor (): IL_001b: stsfld 0x040002d8
Rethrow as TypeInitializationException: An exception was thrown by the type initializer for .Start () (at Assets/Scripts/***.cs:20)
This bit of code calls upon a dll depending on another dll. This error occurs if it cannot find the dll, but I've tried pretty much everything to get it to find it. System32, Plugins, Plugins/(x86/x64), Unity editor Root, putting it next to the exe in a build.
I probably missed a few but I hope someone sees something I dont.
Thanks in advance!
The first one is a .Net assembly, the second one is an unmanaged C++ DLL
yes I do, not the first plugin Im working with, this one just wont go
Noteworthy: Its not code in Unity thats throwing the exception, its the code in the first plugin, that cant find the second one.
Your answer
Follow this Question
Related Questions
Why can't I build Web Player in Unity while I have no problems with building standalone versions? 2 Answers
The program can't start because UnityPlayer.dll is missing from your computer. 2 Answers
DLLNotFoundException ThinkGear 0 Answers
Unable to resolve reference 'office' in Microsoft.Office.Interop.Excel.dll 1 Answer