- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have AutoCAD Map 3D 2011, VB Express 2010, AutoCAD 2011 ObjectARX SDK, AutoCADMAP 3D 2011 SDK. I am familiar with VBA and earlier versions of VB, but not with AutoCAD.
I am just trying to get my feet wet using VB Express and AutoCAD together, so I am trying to get some of the DOT.NET samples in the AutoCAD 2011 ObjectARX SDK to compile and run in AutoCAD. I am currently trying the sample "ENTS" but I am receiving the following warning: "Warning 1 Load of property 'ReferencePath' failed. Cannot add '..\..\..\inc' as a reference path as it is relative. Please specify an absolute path. Ents". I have (I believe) thoroughly checkted my included references and the paths (acdbmgd, acmgd, System). It does compile the Ents.dll though.
In AutoCAD I use "netload" at the command prompt to load the Ents.dll and I receive the following information.
Command: netload
Cannot load assembly. Error details: System.BadImageFormatException: Could not
load file or assembly 'file:///F:\Download\AutoCAD 2011
ObjectArx\Complete\samples\dotNet\Ents\bin\Ents.dll' or one of its
dependencies. This assembly is built by a runtime newer than the currently
loaded runtime and cannot be loaded.
File name: 'file:///F:\Download\AutoCAD 2011
ObjectArx\Complete\samples\dotNet\Ents\bin\Ents.dll'
at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase,
Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark,
Boolean throwOnFileNotFound, Boolean forIntrospection)
at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase,
Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark,
Boolean throwOnFileNotFound, Boolean forIntrospection)
at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef,
Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.InternalLoadFrom(String assemblyFile, Evidence
securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm,
Boolean forIntrospection, StackCrawlMark& stackMark)
at System.Reflection.Assembly.LoadFrom(String assemblyFile)
at Autodesk.AutoCAD.Runtime.ExtensionLoader.Load(String fileName)
at loadmgd()
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value
[HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure
logging.
To turn this feature off, remove the registry value
[HKLM\Software\Microsoft\Fusion!EnableLog].
Command:
I have tried some of the other samples and I receive basicaly the same errors. Thanks
Dan
Solved! Go to Solution.