Message 1 of 11
.NET assembly loads in XP 32-bit, but not Vista 64-bit
Not applicable
06-16-2009
07:34 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello all. I have an assembly that loads correctly in AutoCAD 2009 on XP 32-bit, but not on AutoCAD 2009 on Vista 64-bit. The target framework is set to 2.0, which is present on the XP machine, with the 3.5 framework available on the vista machine. I've tried setting the target to x86 instead of any, and still get the same error. Also, the vista machine is running a virtual machine under vmware.
Anyone have any ideas at things i could check? I know there's quite a few variables here, so any ideas on narrowing things down would be appreciated.
Thanks,
-Chris
{code}
Command: netload
Cannot load assembly. Error details: System.BadImageFormatException: Could not
load file or assembly
'file:///C:\Users\vmcad64\Documents\BackgroundCleaner.dll' or one of its
dependencies. An attempt was made to load a program with an incorrect format.
File name: 'file:///C:\Users\vmcad64\Documents\BackgroundCleaner.dll'
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.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].
{code} Edited by: chrisshoemaker4224 on Jun 16, 2009 12:05 PM
Anyone have any ideas at things i could check? I know there's quite a few variables here, so any ideas on narrowing things down would be appreciated.
Thanks,
-Chris
{code}
Command: netload
Cannot load assembly. Error details: System.BadImageFormatException: Could not
load file or assembly
'file:///C:\Users\vmcad64\Documents\BackgroundCleaner.dll' or one of its
dependencies. An attempt was made to load a program with an incorrect format.
File name: 'file:///C:\Users\vmcad64\Documents\BackgroundCleaner.dll'
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.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].
{code} Edited by: chrisshoemaker4224 on Jun 16, 2009 12:05 PM