Couldn't open my javascript in MonoDevelop

Hello,

I have a problem when i want open my javascript with MonoDevelop. I have this problem with differents projects, and differents javascript (Not with C# but with boo too). My version of unity is 4.5.5f1, i’m on windows 7/64 bits.

The error message is :

An erroer has occured
The file ‘C:\ProjectUnity\Pong\Assets\BallMouvement.js’ could not be opened.
Une exception a été levée par l’initialiseur de type pour ‘Boo.Lang.Compiler.TypeSystem.Types’.
Details
System.TypeInitializationException: Une exception a été levée par l’initialiseur de type pour ‘Boo.Lang.Compiler.TypeSystem.Types’. —> System.TypeLoadException: Impossible de charger le type ‘System.Runtime.CompilerServices.ExtensionAttribute’ à partir de l’assembly ‘mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’.
à Boo.Lang.Compiler.TypeSystem.Types…cctor()
— Fin de la trace de la pile d’exception interne —
à Boo.Lang.Compiler.TypeSystem.Reflection.ReflectionTypeSystemProvider.ObjectTypeImpl…ctor(IReflectionTypeSystemProvider provider)
à Boo.Lang.Compiler.TypeSystem.Reflection.ReflectionTypeSystemProvider…ctor()
à UnityScript.UnityScriptCompilerParameters…ctor(Boolean loadDefaultReferences)
à UnityScript.UnityScriptCompilerParameters…ctor()
à UnityScript.UnityScriptCompiler…ctor()
à UnityScript.MonoDevelop.ProjectModel.UnityScriptParserModule.ParseUnityScript(String fileName, String content)
à UnityScript.MonoDevelop.ProjectModel.UnityScriptParser.Parse(Boolean storeAst, String fileName, TextReader reader, Project project)
à MonoDevelop.SourceEditor.SourceEditorView.RunFirstTimeFoldUpdate(String text) dans c:\BuildAgent\work\d478831d940d36a4\monodevelop\main\src\addins\MonoDevelop.SourceEditor2\MonoDevelop.SourceEditor\SourceEditorView.cs:ligne 734
à MonoDevelop.SourceEditor.SourceEditorView.Load(String fileName, Encoding loadEncoding) dans c:\BuildAgent\work\d478831d940d36a4\monodevelop\main\src\addins\MonoDevelop.SourceEditor2\MonoDevelop.SourceEditor\SourceEditorView.cs:ligne 819
à MonoDevelop.SourceEditor.SourceEditorView.Load(String fileName) dans c:\BuildAgent\work\d478831d940d36a4\monodevelop\main\src\addins\MonoDevelop.SourceEditor2\MonoDevelop.SourceEditor\SourceEditorView.cs:ligne 729
à MonoDevelop.Ide.Gui.LoadFileWrapper.Invoke(String fileName) dans c:\BuildAgent\work\d478831d940d36a4\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide.Gui\Workbench.cs:ligne 1201

Someone can help ?

Apologize my English, i don’t often write.

Bye,
Peglo

RE-install MonoDevelop and Unity else if you on Windows install Visual C# Express

Hi,
I have the same problem Widows7 64 with unity 4.5.5f1 :
“could not be opened. Une exception a été levée par l’initialiseur de type pour ‘Boo.Lang.Compiler.TypeSystem.Types’.”

The re-install MonoDevelop doesn’t work, have you find a solution? Thanks

Hello,

I have found the solution, i have re install .net framework on my computer and that’s solve the problem.