MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

NETLink: LoadNETAssembly["C:\\lego\\Debug\\C4F.LegoRcx.dll"] failed

  • To: mathgroup at
  • Subject: [mg71867] NETLink: LoadNETAssembly["C:\\lego\\Debug\\C4F.LegoRcx.dll"] failed
  • From: "Zhe Hu" <iamhuzhe at>
  • Date: Fri, 1 Dec 2006 06:22:23 -0500 (EST)

I read about driving LEGO Mindstorms RCX with .NET from

So I downloaded the assembly: C4F.LegoRcx.dll. Try to use it in Mathematica
by .NetLink, but failed.


here is the error message from Mathematica:
NET::netexcptn: A .NET exception occurred: System.BadImageFormatException: \
The format of the file 'C4F.LegoRcx.dll' is invalid.
File name: "C4F.LegoRcx.dll"
   at System.Reflection.Assembly.nLoad(AssemblyName fileName, String \
codeBase, Boolean isStringized, Evidence assemblySecurity, Boolean \
throwOnFileNotFound, Assembly locationHint, StackCrawlMark& stackMark)
   at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, \
Boolean stringized, Evidence assemblySecurity, StackCrawlMark& stackMark)
   at System.Reflection.Assembly.LoadFrom(String assemblyFile, Evidence \
securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm)
   at Wolfram.NETLink.TypeLoader.LoadAssembly(String assemblyName)
   at Wolfram.NETLink.Internal.CallPacketHandler.loadAssembly(KernelLinkImpl

LoadNETAssembly::noload: The assembly C:\lego\Debug\C4F.LegoRcx.dll either \
was not found or could not be loaded.

Please help. Thanks,
Hu Zhe

  • Prev by Date: RE: Drawing function with 3 variables in a graph
  • Next by Date: Re: Re: Strange empty set of solutions
  • Previous by thread: Bug in Algebra`Horner` Mathematica 5.2 (Win) Package
  • Next by thread: Re: please explain why ToExpression[SubscriptBox["x","1"],StandardForm] ...