- Home /
error CS7069: Reference to type 'ObjectHandle' claims it is defined in 'mscorlib', but it could not be found
I am receiving the following error:
Assets\Scripts\Python\OOP\Interpreter.cs(184,31): error CS7069: Reference to type 'ObjectHandle' claims it is defined in 'mscorlib', but it could not be found
I have integrated IronPython, and all the files this error is located in point to a class in the Microsoft.Scripting.Hosting namespace. I thought it may have to do with the .NET Standard version listed under Project Settings > Player > Other Settings > Api Compatibility Level. This game connects to a database and it is required that the API Comptaiblity Level be .NET Standard 2.0. However, I found that setting it to .NET Standard 4.x removes the error (but then I can't connect to the database).
I uploaded images of the errors and my project settings below. Does anyone have any knowledge on the .NET frameworks or mscorlib? What might be happening here?
Anything would be appreciated, thanks!
Your answer
![](https://koobas.hobune.stream/wayback/20220612224124im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Is it possible to reference .NET references and give up cross-platform? 1 Answer
Launching local Unity API Reference from MonoDevelop 7 Answers
my Monodevelop can't code, any help or solution? 2 Answers
How to get F1 in MonoDevelop to open Unity script reference and/or MSDN c# reference? 3 Answers
Unassigned Reference Exception ? 0 Answers