- Home /
Support for System.Management in Unity, getting TypeLoader Exception
Hi I have developed a C# program in MonoDevelop to read the Mac Addresses of the system and I used System.Management after adding it to references. The program runs successfully and gives me the required output. But when I try the same program from Unity, it is giving me following errors. I have copied the Sysetm.Management dll from .NET 2.0 and put it in the plugin folder for Unity.(Developemnt is done in Windows version of Unity)
Internal compiler error. See the console log for more information. output was: Unhandled Exception: System.TypeLoadException: Could not load type 'System.CodeDom.CodeTypeDeclaration' from assembly 'System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
Kindly help me out, I am a beginner in .Net and Unity Thanks in advance
Answer by oleclerc · Oct 02, 2013 at 03:33 PM
In Edit->Project Settings->Player, set the Api Compatibility Level to ".NET 2.0" (not subset)
Your answer
![](https://koobas.hobune.stream/wayback/20220613084828im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
A node in a childnode? 1 Answer
Fire in Unity3D - Fire particles 1 Answer
Installation/Activation question 1 Answer
"Asset Store Not Available" Can't Connect to Asset Store? 2 Answers
Spells - storage, etc... [c#] 2 Answers