MathGroup Archive 2006

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

Search the Archive

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

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

I read about driving LEGO Mindstorms RCX with .NET from
http://msdn.microsoft.com/coding4fun/hardware/robotics/article.aspx?articleid=877488

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

Needs["NETLink`"]
InstallNET[]
LoadNETAssembly["C:\\lego\\Debug\\C4F.LegoRcx.dll"]

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
\
ml)

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] ...