2017-02-20 18:33 UTC
Hey community, here's my situation: I'm deploying a custom UI for AutoCAD 2017 using DCL projects that are called to load from the acaddoc.lsp on startup. I cannot get the ARX or the DLL to load. Any help would be great!
Here is the lines from acaddoc.lsp
(command "._netload" (strcat @app "opendcl/OpenDCL/ENU/Runtime.Res.dll"))
(arxload (strcat @app "opendcl/OpenDCL/OpenDCL.x64.17"))
(command "opendcl")
(load (strcat @dcl "M_swassm"))
(dcl_project_load "M_swassm" T)
Here is the return on manually loading the DLL.
I ran the OpenDCL Runtime and copied the contents of the .../common files/OpenDCL to a custom directory that will be copied with other dependent files for the custom UI. Side note, is there something in the registry the runtime edits?
Thank you in advance,
Here is the lines from acaddoc.lsp
(command "._netload" (strcat @app "opendcl/OpenDCL/ENU/Runtime.Res.dll"))
(arxload (strcat @app "opendcl/OpenDCL/OpenDCL.x64.17"))
(command "opendcl")
(load (strcat @dcl "M_swassm"))
(dcl_project_load "M_swassm" T)
Here is the return on manually loading the DLL.
Command: NETLOAD
Cannot load assembly. Error details: System.BadImageFormatException: Could not load file or assembly 'file:///C:\Users\Public\swaCAD\app\opendcl\OpenDCL\ENU\Runtime.Res.dll' or one of its dependencies. The module was expected to contain an assembly manifest.
File name: 'file:///C:\Users\Public\swaCAD\app\opendcl\OpenDCL\ENU\Runtime.Res.dll'
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, Boolean suppressSecurityChecks, 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].
I ran the OpenDCL Runtime and copied the contents of the .../common files/OpenDCL to a custom directory that will be copied with other dependent files for the custom UI. Side note, is there something in the registry the runtime edits?
Thank you in advance,