Did you add mpi.dll as references to your project?(C:\Program Files\MPI.NET\Lib\MPI.dll)?


Date: Mon, 7 Dec 2009 17:11:12 -0300
From: misterdmf@gmail.com
To: mpi.net@osl.iu.edu
Subject: [MPI.NET] Error trying to run a HelloWorld

When I run: mono Hello.exe or mpirun Hello.exe
The following error occurs:
Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for MPI.Unsafe ---> System.DllNotFoundException: mpinet
  at (wrapper managed-to-native) MPI.Unsafe:mpinet_MPI_COMM_WORLD ()
  at MPI.Unsafe..cctor () [0x00000]
  --- End of inner exception stack trace ---
  at MPI.Environment..ctor (System.String[]& args) [0x00000]
  at Hello.Main (System.String[] args) [0x00000]


Keep your friends updated— even when you’re not signed in.