locked
infer.net starting problem RRS feed

  • Question

  • Hello all,

    could you help me please? I downloaded infer.net, went through the tutorials but when i tried to run the inferNET101 itsef, it is not working. i got the following error message (among 96 similar):

    Error    1    The type or namespace name 'MicrosoftResearch' could not be found (are you missing a using directive or an assembly reference?)    C:\Users\SINKA\Documents\Infer.NET 2.4\Example Solutions\InferNET101\CyclingTime3.cs    3    7    InferNET101

    what is missing? i dowloaded everything from your page, using Microsoft Visual C# 2010 Express. The Example browser ios working more or less fine, except the tree visualisation. got error messages there too. (something out of range..)

    Looking forward your answer. Thanks in advance!

    Zizi

    Monday, December 19, 2011 10:27 AM

Answers

  • Thanks for pointing this out.  It seems the assembly references in InferNET101 are incorrect.  You will need to update them manually.  In the Visual Studio Solution Explorer, open the References folder and delete the references to Infer.Compiler and Infer.Runtime.  Then right-click the References folder and select Add Reference -> Browse.  Browse to your Infer.NET installation and select all of the dlls.  The project should then compile.
    • Marked as answer by ZiziS Monday, December 19, 2011 2:19 PM
    Monday, December 19, 2011 1:26 PM
    Owner
  • Hi Zizi

    Sorry about that; the references in this solution erroneously point to the wrong place. When you open the solution, can you just re-add the Infer.NET references to point to:

    \Users\SINKA\Documents\Infer.NET 2.4\bin\Release\Infer.Compiler.dll

    and

    \Users\SINKA\Documents\Infer.NET 2.4\bin\Debug\Infer.Runtime.dll

    This will fix all the errors.

    The example Browser bug is a known one and will be fixed in the next release.

    John

    • Marked as answer by ZiziS Monday, December 19, 2011 2:19 PM
    Monday, December 19, 2011 1:41 PM
    Owner

All replies

  • Thanks for pointing this out.  It seems the assembly references in InferNET101 are incorrect.  You will need to update them manually.  In the Visual Studio Solution Explorer, open the References folder and delete the references to Infer.Compiler and Infer.Runtime.  Then right-click the References folder and select Add Reference -> Browse.  Browse to your Infer.NET installation and select all of the dlls.  The project should then compile.
    • Marked as answer by ZiziS Monday, December 19, 2011 2:19 PM
    Monday, December 19, 2011 1:26 PM
    Owner
  • Hi Zizi

    Sorry about that; the references in this solution erroneously point to the wrong place. When you open the solution, can you just re-add the Infer.NET references to point to:

    \Users\SINKA\Documents\Infer.NET 2.4\bin\Release\Infer.Compiler.dll

    and

    \Users\SINKA\Documents\Infer.NET 2.4\bin\Debug\Infer.Runtime.dll

    This will fix all the errors.

    The example Browser bug is a known one and will be fixed in the next release.

    John

    • Marked as answer by ZiziS Monday, December 19, 2011 2:19 PM
    Monday, December 19, 2011 1:41 PM
    Owner
  • Dear Tom, thank you for your answer. it's working now :)

    Monday, December 19, 2011 2:20 PM
  • Dear John,

    thank you for your detailed answer. It's working now :) Looking forward to try out more :)

    Zizi

    Monday, December 19, 2011 2:21 PM