This project is read-only.

GLEE version

Oct 22, 2008 at 8:33 PM
Edited Oct 22, 2008 at 8:34 PM
NModel seems to want GLEE 1.2 although the webpage says 1.2

http://research.microsoft.com/research/downloads/Details/f1303e46-965f-401a-87c3-34e1331d32c5/Detailslynn.aspx?0sr=a

the dlls installed are actually version 1.0 so mpv won't open.
Oct 26, 2008 at 10:24 PM
Can you please post the error message that you get when trying to invoke mpv? Also, please make sure that  NModel binaries from C:\Program Files\NModel\bin and GLEE binaries from C:\Program Files\Microsoft Research\GLEE\bin have been copied to the folder where you run mpv.
Oct 27, 2008 at 1:17 AM
C:\Program Files\NModel\bin>mpv
Unexpected error occurred.

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or ass
embly 'Microsoft.GLEE.Drawing, Version=1.2.0.0, Culture=neutral, PublicKeyToken=
8a3d7c21d5fa1306' or one of its dependencies. The system cannot find the file sp
ecified.
File name: 'Microsoft.GLEE.Drawing, Version=1.2.0.0, Culture=neutral, PublicKeyT
oken=8a3d7c21d5fa1306'
   at NModel.Visualization.CommandLineViewer.RunWithCommandLineArguments(String[
] args)
   at NModel.Tools.MPV.Main(String[] args)


After copying GLEE binaries to NModel\bin

C:\Program Files\NModel\bin>mpv
No model, fsm, or test suite was given.


Thanks.



Dec 29, 2009 at 4:55 PM

I have copied the GLEE Binaries to NModel\bin.I still encounter the same error.

C:\Program Files\NModel\bin>mpv
Unexpected error occurred.

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or ass
embly 'Microsoft.GLEE.Drawing, Version=1.2.0.0, Culture=neutral, PublicKeyToken=
8a3d7c21d5fa1306' or one of its dependencies. The system cannot find the file sp
ecified.
File name: 'Microsoft.GLEE.Drawing, Version=1.2.0.0, Culture=neutral, PublicKeyT
oken=8a3d7c21d5fa1306'
   at NModel.Visualization.CommandLineViewer.RunWithCommandLineArguments(String[
] args)
   at NModel.Tools.MPV.Main(String[] args).

 

Thanks.

Jan 3, 2010 at 1:39 AM

Perhaps try recompiling NModel for whatever version of GLEE you have downloaded.

Jan 3, 2010 at 10:46 PM

Can you please post the directory listing of your NModel\bin directory. Which GLEE version are you using?

Jan 3, 2010 at 11:46 PM

Note: I'm no longer having problems with NModel and GLEE

Directory of C:\Program Files\NModel\bin

10/26/2008  04:54 PM    <DIR>          .
10/26/2008  04:54 PM    <DIR>          ..
04/30/2008  06:34 PM             5,120 ct.exe
04/30/2008  06:34 PM             4,608 fsm2dot.exe
07/04/2007  09:40 AM           196,608 Microsoft.GLEE.dll
07/04/2007  09:40 AM            73,728 Microsoft.GLEE.Drawing.dll
07/04/2007  09:40 AM           179,712 Microsoft.GLEE.Drawing.pdb
07/04/2007  09:40 AM            98,304 Microsoft.GLEE.GraphViewerGDI.dll
07/04/2007  09:40 AM           196,096 Microsoft.GLEE.GraphViewerGDI.pdb
07/04/2007  09:40 AM           609,792 Microsoft.GLEE.pdb
04/30/2008  06:34 PM             5,120 mpv.exe
04/30/2008  06:34 PM           385,024 NModel.dll
04/30/2008  06:34 PM         1,035,776 NModel.pdb
04/30/2008  06:34 PM           139,264 NModel.Visualization.dll
04/30/2008  06:34 PM           202,240 NModel.Visualization.pdb
04/30/2008  06:34 PM           460,520 NModel.xml
04/30/2008  06:34 PM             5,120 otg.exe
              15 File(s)      3,597,032 bytes
               2 Dir(s)  61,978,882,048 bytes free

Microsoft.GLEE.dll version 1.0.0.0

Jan 4, 2010 at 12:48 PM

Here are the results of an experiment after installing  the current releases of NModel.msi (1.0.21029) and GLEE.msi:

cd C:\Program Files\NModel\bin
mpv.exe

Result (as reported by igouy initially and Sujithra) with assembly bind failure logging ON (to enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.):

C:\Program Files\NModel\bin>mpv
Unexpected error occurred.

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.GLEE.Drawing, Version=1.2.0.0,
Culture=neutral, PublicKeyToken=8a3d7c21d5fa1306' or one of its dependencies. The system cannot find the file specified.
File name: 'Microsoft.GLEE.Drawing, Version=1.2.0.0, Culture=neutral, PublicKeyToken=8a3d7c21d5fa1306'
   at NModel.Visualization.CommandLineViewer.RunWithCommandLineArguments(String[] args)
   at NModel.Tools.MPV.Main(String[] args)

=== Pre-bind state information ===
LOG: User = jpebox\jpe
LOG: DisplayName = Microsoft.GLEE.Drawing, Version=1.2.0.0, Culture=neutral, PublicKeyToken=8a3d7c21d5fa1306
 (Fully-specified)
LOG: Appbase = file:///C:/Program Files/NModel/bin/
LOG: Initial PrivatePath = NULL
Calling assembly : NModel.Visualization, Version=1.0.21029.0, Culture=neutral, PublicKeyToken=1ab4cd1a09bd7aa7.
===
LOG: This bind starts in default load context.
LOG: No application configuration file found.
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Post-policy reference: Microsoft.GLEE.Drawing, Version=1.2.0.0, Culture=neutral, PublicKeyToken=8a3d7c21d5fa1306
LOG: Attempting download of new URL file:///C:/Program Files/NModel/bin/Microsoft.GLEE.Drawing.DLL.
LOG: Attempting download of new URL file:///C:/Program Files/NModel/bin/Microsoft.GLEE.Drawing/Microsoft.GLEE.Drawing.DLL.
LOG: Attempting download of new URL file:///C:/Program Files/NModel/bin/Microsoft.GLEE.Drawing.EXE.
LOG: Attempting download of new URL file:///C:/Program Files/NModel/bin/Microsoft.GLEE.Drawing/Microsoft.GLEE.Drawing.EXE.

Now, I copied the GLEE.dlls to C:\Program Files\NModel\bin (as you apparently did too). The result of attempting to run mpv.exe is the following:

C:\Program Files\NModel\bin>mpv.exe
No model, fsm, or test suite was given.

Which indicates that mpv.exe works but lacks a model to visualize.

It appears that the GLEE DLL-s have two different versions embedded in them. The version that you see when doing the right click -> properties -> details is the binary dll version that is embedded in the standard Windows dll header. All .NET dlls have such a header that tells the system to load .NET runtime to run the IL bytecode that follows. The version has been left unchanged in GLEE and we cannot do anything about it. The second place where the actual .NET dll version resides, is in the manifest of the dll. You can view the manifest with, for example, ildasm.exe (available in the platform SDK). The dependency section from the manifest of NModel.Vizualization.dll:

.assembly extern Microsoft.GLEE.Drawing
{
  .publickeytoken = (8A 3D 7C 21 D5 FA 13 06 )                         // .=|!....
  .ver 1:2:0:0
}

The version declaration in the manifest of the GLEE dlls:

.assembly Microsoft.GLEE
{
  .custom instance void [mscorlib]System.Reflection.AssemblyConfigurationAttribute::.ctor(string) = ( 01 00 00 00 00 ) 
...
  .ver 1:2:0:0
}

So as the bottom line, please copy all NModel and GLEE binaries to the directory where you develop your models. To run mpv.exe, open the command prompt,
cd to that working directory and then run mpv.exe from the command prompt.

Hope that helps to resolve the dependency problems.

 

Jan 5, 2010 at 7:28 AM

Thanks all for ur help and support.

NModel is working fine now.I used GLEE 1.2.

No model, fsm, or test suite was given is the output once i executed mpv.

Thanks again.