The exception can be also caused by some other exception that happens in a constructor of a object that is being created using reflection. Can you check what the InnerException message says?
Are you getting the error after installing F# binding or on a clean system?
T.
--
You received this message because you are subscribed to the Google
Groups "FSharp Open Source Community" group.
To post to this group, send email to fsharp-o...@googlegroups.com
To unsubscribe from this group, send email to
fsharp-opensou...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/fsharp-opensource?hl=en
Hmm, the InnerException is not very useful. Perhaps it has an InnerException as well?
However, it looks like there is some issue with loading FsharpBinding – are you sure the MonoDevelop folder contains the latest version (built against a corresponding version of MonoDevelop) and that it can locate all F# libraries it uses (Fsharp.Core)?
Are you just installing the (existing version) of the addin, are you building the adding against the current version of MonoDevelop?
In the first case – I would not expect that to work, because the MonoDevelop API keeps changing, so you’ll need to rebuild the addin (with references to the currently installed MonoDevelop).
In the second case – I’m not sure what could be causing the problem. You’ll need to find out by analyzing the exceptions and finding out where in the F# code does the exception occur.
Anyway, if you’re developing the F# addin (with a plan to integrate it into MonoDevelop) then I think the best setting would be to build MonoDevelop from source too. That way, you should be able to debug MonoDevelop (using MonoDevelop :-)) and see what call from MonoDevelop to the F# binding causes the problem (and then you can find out what the problem is on the F# side...)
Tomas
From: fsharp-o...@googlegroups.com [mailto:fsharp-o...@googlegroups.com] On Behalf Of Sega Able
Sent: Saturday, May 19, 2012 11:59 PM
To: fsharp-o...@googlegroups.com
Subject: Re: Type load exception
I have intalled MD on clean OS and experience the same problem. The error goes away if I disable F# plugin. I think I know what the problem is: in the add-in manager it shows that F# adding has 2.8 version whereas all other addins have 2.8.6.5. But the thing is I built addin for 2.8.6.5. Version! Tomas has mentioned about it before.
--
Well, in that case, there was probably some change in MonoDevelop API’s behaviour that is causing the exception. It is hard to tell what exactly is causing the error without knowing more details – the Exception message was quite vague.
If you cannot get more info from the exception (look at InnerException’s InnerException etc.), then I think the best thing to do would be to build MonoDevelop from source. Then you should be able to get better error reporting.
T.
From: fsharp-o...@googlegroups.com [mailto:fsharp-o...@googlegroups.com] On Behalf Of Sega Able
Sent: Monday, May 21, 2012 11:33 AM
To: fsharp-o...@googlegroups.com
Subject: Re: Type load exception
I am building the adding against the current version of MonoDevelop.
--