Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7632669
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T06:41:04+00:00 2026-05-31T06:41:04+00:00

I am trying Infer.Net ( An F# Library for Probabilistic Programming ) And running

  • 0

I am trying Infer.Net (An F# Library for Probabilistic Programming)
And running the examples in VS11 Beta lead to the error :

Could not load file or assembly ‘FSharp.Core, Version=4.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ or one of its
dependencies. The system cannot find the file specified.

If I open the dlls used the infer.net samples in Reflector, one, probcomp.dll, says it can not find automatically “FSharp.Core, Version=4.0.0.0″and that I need to select the location by hand.

Are the two things linked ?
Is it possible that probcomp.dll has been compiled with a ‘fixed path’ reference and that now it is not the same on my machine ?

PS : of course fsharp projects from scratch are working fine..

PS2 : The dll under reference in visual studio do not show any sign that they are not found. And I can open them in the object browser.

UPDATE

The error happens tight at start of the program, there is no time to see anything.
Yet, it happens INSIDE the program : If the following line is not called

let coinsD = inferExpr <@ coins @> 

Then the errors does not happen.
With it, the following error is raised, in a different example
Unsurprisingly, it is from the dll whose behaviour was strange in reflector.

Could not load file or assembly ‘FSharp.Core, Version=4.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ or one of its
dependencies. The located assembly’s manifest definition does not
match the assembly reference
. (Exception from HRESULT: 0x80131040)

The signature of the said function is quite strange in the object browser :

public static IDistribution<b>inferExpr<b>(**unknown-type e**)

YET, in reflector after I told him where to find Fsharp 4.0.0 upon opening the dll, it has the signature

public static IDistribution<b> inferExpr<b>(FSharpExpr<b> e);

This dll must have some kind of strange hard link dependencies, and reflector is smarter (or not..) than VS to figure it out.

To make a good from a bad, if you have any idea of what could have happened in this dll, this could be an occasion to learn.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T06:41:05+00:00Added an answer on May 31, 2026 at 6:41 am

    I’m able to run that example in VS11 targeting .NET 4.0 and using FSharp.Core 4.0.0.0. I encounter an error when targeting .NET 4.5 and changing FSharp.Core to 4.3.0.0 version.

    So the problem is not hard link dependencies between dlls. Changing Target Framework in Project Properties to .NET 4.0 and carefully adding FSharp.Core 4.0.0.0 in Reference dialog (noticing there are various versions of FSharp.Core available) would solve the problem.

    In your case, since F# 2.0 runtime is missing, installing it first before doing the above step.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to play with inter-process communication and since I could not figure out
I'm not very experienced in ASP.Net, as I work mostly with PHP. I'm trying
I'm trying to call a web service from .NET 3.5 using WCF. The error
Trying to find some simple SQL Server PIVOT examples. Most of the examples that
I am trying to get this in MATLAB, however I am not successful !
I am trying to write a regular expression in .NET to capture the whole
I'm trying to start a Windows service on Windows Server 2003 from an ASP.NET
I am using WCF RIA Services VS2008/.NET 3.5 and trying to do exception handling.
I'm coding in C# for the .NET Framework 3.5. I am trying to parse
I receive the following exception while attempting to log an error using Enterprise Library

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.