NETLOAD Cannot load assembly

NETLOAD Cannot load assembly

Anonymous
Not applicable
2,124 Views
1 Reply
Message 1 of 2

NETLOAD Cannot load assembly

Anonymous
Not applicable

hi

i use visual studio 2015 - objectarx 2018. my dll work perfect in autocad 2018.  but dll can not load autocad 2011. how can I use my dll file in AutoCAD
AutoCAD 2011 ?

net load error : NETLOAD Cannot load assembly. Error details:
System.BadImageFormatException: Could not load file or assembly
'file://\\vmware-host\Shared Folders\beep\beep\bin\Debug\beep.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://\\vmware-host\Shared Folders\beep\beep\bin\Debug\beep.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].

0 Likes
2,125 Views
1 Reply
Reply (1)
Message 2 of 2

ActivistInvestor
Mentor
Mentor
You have to recompile your app using the assemblies for AutoCAD 2011 (acmdg.dll and acdbmgd.dll from the AutoCAD 2011 version of the SDK), and you have to set the .NET framework version to 2.0.


@Anonymous wrote:

hi

i use visual studio 2015 - objectarx 2018. my dll work perfect in autocad 2018.  but dll can not load autocad 2011. how can I use my dll file in AutoCAD
AutoCAD 2011 ?

net load error : NETLOAD Cannot load assembly. Error details:
System.BadImageFormatException: Could not load file or assembly
'file://\\vmware-host\Shared Folders\beep\beep\bin\Debug\beep.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://\\vmware-host\Shared Folders\beep\beep\bin\Debug\beep.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].


 

0 Likes