Hello,
For starters, here's my operating environment. I have Windows 2000 (SP4), AutoCAD 2006, AutoCAD 2007, and Visual Studio 2005 loaded on my PC. Since I have AutoCAD 2007 installed and I am building applications for AutoCAD 2006, I uncommented <supportedRuntime version="v1.1.4322"/> in acad.exe.config
After building an AutoCAD 2006 assembly, I receive the following messages when I try to load it using the AutoCAD netload command.
Command: netload
Cannot load assembly. Error details: System.BadImageFormatException: The format
of the file 'Autodesk_StatusBar.dll' is invalid.
File name: "Autodesk_StatusBar.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 Autodesk.AutoCAD.Runtime.ExtensionLoader.Load(String fileName)
at loadmgd()
=== Pre-bind state information ===
LOG: Where-ref bind. Location = C:\Documents and Settings\uscis002\My
Documents\Visual Studio
2005\Projects\Training\Autodesk_StatusBar\bin\Debug\Autodesk_StatusBar.dll
LOG: Appbase = C:\Program Files\AUTOCA~1\
LOG: Initial PrivatePath = NULL
Calling assembly : (Unknown).
===
LOG: Policy not being applied to reference at this time (private, custom,
partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///C:/Documents and
Settings/uscis002/My Documents/Visual Studio
2005/Projects/Training/Autodesk_StatusBar/bin/Debug/Autodesk_StatusBar.dll.
For what it's worth, I can build AutoCAD 2007 assemblies and netload them just fine.
Any ideas?
Thanks,
Nick