Type load exception

104 views
Skip to first unread message

Sega Able

unread,
May 16, 2012, 11:31:18 AM5/16/12
to fsharp-o...@googlegroups.com
Hi guys,
I have PC and laptop with the same problem in MonoDevelop (2.8.6.3 and 2.8.6.5): Every time I try to choose any project of any language I am getting "A type load exception has occurred." Here are the details[1]. I know that this exception fires up when particular dll is not found...but how do I know what exactly dll?

laptop runs with Mint 12.
PC runs with OpenSUSE 11.4



Ihor.

Tomas Petricek

unread,
May 16, 2012, 12:02:10 PM5/16/12
to fsharp-o...@googlegroups.com

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

Sega Able

unread,
May 16, 2012, 3:08:06 PM5/16/12
to fsharp-o...@googlegroups.com
When I try to open existing project I am getting this:
"Could not load type 'provider@16' from assembly 'FSharpBinding, Version=0.0.0.0, Culture=neutral, "PublicKeyToken=null'



2012/5/16 Tomas Petricek <to...@tomasp.net>

Sega Able

unread,
May 16, 2012, 3:19:55 PM5/16/12
to fsharp-o...@googlegroups.com
Inner exception[1]

Also, when I am trying to open existing project I am getting this error:
"Could not load type 'provider@16' from assembly 'FSharpBinding, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'."

[1] http://pastebin.com/zScTUe3E

2012/5/16 Tomas Petricek <to...@tomasp.net>

Tomas Petricek

unread,
May 16, 2012, 3:49:09 PM5/16/12
to fsharp-o...@googlegroups.com

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)?

Sega Able

unread,
May 16, 2012, 5:02:16 PM5/16/12
to fsharp-o...@googlegroups.com
/usr/lib/monodevelop/AddIns/BackendBindings/ contains:
FSharpBinding.dll          
FSharpBinding.dll.mdb        
FSharpBinding.Gui.dll         
FSharpBinding.Gui.dll.mdb

gacutil -l | grep FSharp shows me FSharp.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a

Perhaps some dlls are missing in gac? 
On PC the above gacutil command shows no result. 

2012/5/16 Tomas Petricek <to...@tomasp.net>

Sega Able

unread,
May 19, 2012, 6:58:32 PM5/19/12
to fsharp-o...@googlegroups.com
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.

        <Dependencies>
<Addin id="Core" version="2.8.6.5"/>
<Addin id="Ide" version="2.8.6.5"/>
<Addin id="SourceEditor2" version="2.8.6.5"/>
  </Dependencies>

What am I missing?

2012/5/17 Sega Able <segam...@gmail.com>

Tomas Petricek

unread,
May 19, 2012, 7:29:01 PM5/19/12
to fsharp-o...@googlegroups.com

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.

Sega Able

unread,
May 21, 2012, 6:32:39 AM5/21/12
to fsharp-o...@googlegroups.com
I am building the adding against the current version of MonoDevelop.  

2012/5/20 Tomas Petricek <to...@tomasp.net>
--

Tomas Petricek

unread,
May 21, 2012, 8:33:26 PM5/21/12
to fsharp-o...@googlegroups.com

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.  

 

Sega Able

unread,
May 29, 2012, 1:52:34 PM5/29/12
to fsharp-o...@googlegroups.com
The problem was that MD couldn`t load Mono.Cecil assembly :)  However, my fault is that I didn`t update my branch with latest commits (one of them is solving this problem) from mono/monodevelop.git

2012/5/22 Tomas Petricek <to...@tomasp.net>

--
Reply all
Reply to author
Forward
0 new messages