<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: .NET assembly loads in XP 32-bit, but not Vista 64-bit in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/net-assembly-loads-in-xp-32-bit-but-not-vista-64-bit/m-p/2507376#M70022</link>
    <description>chrisshoemaker4224 wrote:&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; Not specifically...but I am using unmanaged AutoCAD COM componants &lt;BR /&gt;
&amp;gt; through Interop (which i suspect is the same thing). I'm using VB.NET&lt;BR /&gt;
&amp;gt;  to port a VBA application through COM Interop. -Chris&lt;BR /&gt;
&lt;BR /&gt;
I didn't have any luck using early bound COM in assemblies that must run&lt;BR /&gt;
both in 32/64bit, experiencing similar errors from what I recall.  Using&lt;BR /&gt;
the managed API is preferred, and late bound COM only when something is&lt;BR /&gt;
missing from the API.  That approach is working well for me and the&lt;BR /&gt;
results run in any version of AutoCAD 2007 and higher.&lt;BR /&gt;
&lt;BR /&gt;
Terry</description>
    <pubDate>Tue, 16 Jun 2009 17:21:05 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-06-16T17:21:05Z</dc:date>
    <item>
      <title>.NET assembly loads in XP 32-bit, but not Vista 64-bit</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-assembly-loads-in-xp-32-bit-but-not-vista-64-bit/m-p/2507373#M70019</link>
      <description>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.&lt;BR /&gt;
&lt;BR /&gt;
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.&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
&lt;BR /&gt;
-Chris&lt;BR /&gt;
&lt;BR /&gt;
{code}&lt;BR /&gt;
Command: netload&lt;BR /&gt;
Cannot load assembly. Error details: System.BadImageFormatException: Could not &lt;BR /&gt;
load file or assembly &lt;BR /&gt;
'file:///C:\Users\vmcad64\Documents\BackgroundCleaner.dll' or one of its &lt;BR /&gt;
dependencies. An attempt was made to load a program with an incorrect format.&lt;BR /&gt;
File name: 'file:///C:\Users\vmcad64\Documents\BackgroundCleaner.dll'&lt;BR /&gt;
   at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, &lt;BR /&gt;
Evidence assemblySecurity, Assembly locationHint, StackCrawlMark&amp;amp; stackMark, &lt;BR /&gt;
Boolean throwOnFileNotFound, Boolean forIntrospection)&lt;BR /&gt;
   at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, &lt;BR /&gt;
Evidence assemblySecurity, StackCrawlMark&amp;amp; stackMark, Boolean forIntrospection)&lt;BR /&gt;
   at System.Reflection.Assembly.LoadFrom(String assemblyFile)&lt;BR /&gt;
   at Autodesk.AutoCAD.Runtime.ExtensionLoader.Load(String fileName)&lt;BR /&gt;
   at loadmgd()&lt;BR /&gt;
&lt;BR /&gt;
WRN: Assembly binding logging is turned OFF.&lt;BR /&gt;
To enable assembly bind failure logging, set the registry value &lt;BR /&gt;
[HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.&lt;BR /&gt;
Note: There is some performance penalty associated with assembly bind failure &lt;BR /&gt;
logging.&lt;BR /&gt;
To turn this feature off, remove the registry value &lt;BR /&gt;
[HKLM\Software\Microsoft\Fusion!EnableLog].&lt;BR /&gt;
{code}

Edited by: chrisshoemaker4224 on Jun 16, 2009 12:05 PM</description>
      <pubDate>Tue, 16 Jun 2009 14:34:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-assembly-loads-in-xp-32-bit-but-not-vista-64-bit/m-p/2507373#M70019</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-16T14:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: .NET assembly loads in XP 32-bit, but not Vista 64-bit</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-assembly-loads-in-xp-32-bit-but-not-vista-64-bit/m-p/2507374#M70020</link>
      <description>Does your assembly use P/Invoke on AutoCAD native APIs?&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD 2009&lt;BR /&gt;
Supporting AutoCAD 2000 through 2009&lt;BR /&gt;
&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
Introducing AcadXTabs 2010:&lt;BR /&gt;
http://www.caddzone.com/acadxtabs/AcadXTabs2010.htm&lt;BR /&gt;
&lt;BR /&gt;
Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;CHRISSHOEMAKER4224&gt; wrote in message &lt;BR /&gt;
news:6202474@discussion.autodesk.com...&lt;BR /&gt;
Hello all. I have an assembly that loads correctly in AutoCAD 2009 on XP &lt;BR /&gt;
32-bit, but not on AutoCAD 2009 on Vista 64-bit. The target framework is set &lt;BR /&gt;
to 2.0, which is present on the XP machine, with the 3.5 framework available &lt;BR /&gt;
on the vista machine. I've tried setting the target to x86 instead of any, &lt;BR /&gt;
and still get the same error. Also, the vista machine is running a virtual &lt;BR /&gt;
machine under vmware. Anyone have any ideas at things i could check? I know &lt;BR /&gt;
there's quite a few variables here, so any ideas on narrowing things down &lt;BR /&gt;
would be appreciated. Thanks, -Chris {code} Command: netload Cannot load &lt;BR /&gt;
assembly. Error details: System.BadImageFormatException: Could not load file &lt;BR /&gt;
or assembly 'file:///C:\Users\vmcad64\Documents\BackgroundCleaner.dll' or &lt;BR /&gt;
one of its dependencies. An attempt was made to load a program with an &lt;BR /&gt;
incorrect format. File name: &lt;BR /&gt;
'file:///C:\Users\vmcad64\Documents\BackgroundCleaner.dll' at &lt;BR /&gt;
System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, &lt;BR /&gt;
Evidence assemblySecurity, Assembly locationHint, StackCrawlMark&amp;amp; stackMark, &lt;BR /&gt;
Boolean throwOnFileNotFound, Boolean forIntrospection) at &lt;BR /&gt;
System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence &lt;BR /&gt;
assemblySecurity, StackCrawlMark&amp;amp; stackMark, Boolean forIntrospection) at &lt;BR /&gt;
System.Reflection.Assembly.LoadFrom(String assemblyFile) at &lt;BR /&gt;
Autodesk.AutoCAD.Runtime.ExtensionLoader.Load(String fileName) at loadmgd() &lt;BR /&gt;
WRN: Assembly binding logging is turned OFF. To enable assembly bind failure &lt;BR /&gt;
logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] &lt;BR /&gt;
(DWORD) to 1. Note: There is some performance penalty associated with &lt;BR /&gt;
assembly bind failure logging. To turn this feature off, remove the registry &lt;BR /&gt;
value [HKLM\Software\Microsoft\Fusion!EnableLog]. {code} Edited by: &lt;BR /&gt;
chrisshoemaker4224 on Jun 16, 2009 12:05 PM&lt;/CHRISSHOEMAKER4224&gt;</description>
      <pubDate>Tue, 16 Jun 2009 16:21:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-assembly-loads-in-xp-32-bit-but-not-vista-64-bit/m-p/2507374#M70020</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-16T16:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: .NET assembly loads in XP 32-bit, but not Vista 64-bit</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-assembly-loads-in-xp-32-bit-but-not-vista-64-bit/m-p/2507375#M70021</link>
      <description>Not specifically...but I am using unmanaged AutoCAD COM componants through Interop (which i suspect is the same thing).&lt;BR /&gt;
&lt;BR /&gt;
I'm using VB.NET to port a VBA application through COM Interop. &lt;BR /&gt;
&lt;BR /&gt;
-Chris</description>
      <pubDate>Tue, 16 Jun 2009 16:25:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-assembly-loads-in-xp-32-bit-but-not-vista-64-bit/m-p/2507375#M70021</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-16T16:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: .NET assembly loads in XP 32-bit, but not Vista 64-bit</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-assembly-loads-in-xp-32-bit-but-not-vista-64-bit/m-p/2507376#M70022</link>
      <description>chrisshoemaker4224 wrote:&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; Not specifically...but I am using unmanaged AutoCAD COM componants &lt;BR /&gt;
&amp;gt; through Interop (which i suspect is the same thing). I'm using VB.NET&lt;BR /&gt;
&amp;gt;  to port a VBA application through COM Interop. -Chris&lt;BR /&gt;
&lt;BR /&gt;
I didn't have any luck using early bound COM in assemblies that must run&lt;BR /&gt;
both in 32/64bit, experiencing similar errors from what I recall.  Using&lt;BR /&gt;
the managed API is preferred, and late bound COM only when something is&lt;BR /&gt;
missing from the API.  That approach is working well for me and the&lt;BR /&gt;
results run in any version of AutoCAD 2007 and higher.&lt;BR /&gt;
&lt;BR /&gt;
Terry</description>
      <pubDate>Tue, 16 Jun 2009 17:21:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-assembly-loads-in-xp-32-bit-but-not-vista-64-bit/m-p/2507376#M70022</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-16T17:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: .NET assembly loads in XP 32-bit, but not Vista 64-bit</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-assembly-loads-in-xp-32-bit-but-not-vista-64-bit/m-p/2507377#M70023</link>
      <description>Terry,&lt;BR /&gt;
&lt;BR /&gt;
A lot of the code interfaces with the Sheet Set Manager API, which i believe is only accessible in early bound COM....so that alone would prohibit me from using an all-managed code project. Is it possible that two different versions might get around this? One compiled for 32-bit and the other for 64-bit?&lt;BR /&gt;
&lt;BR /&gt;
-Chris</description>
      <pubDate>Tue, 16 Jun 2009 17:36:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-assembly-loads-in-xp-32-bit-but-not-vista-64-bit/m-p/2507377#M70023</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-16T17:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: .NET assembly loads in XP 32-bit, but not Vista 64-bit</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-assembly-loads-in-xp-32-bit-but-not-vista-64-bit/m-p/2507378#M70024</link>
      <description>chrisshoemaker4224 wrote:&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; A lot of the code interfaces with the Sheet Set Manager API, which i &lt;BR /&gt;
&amp;gt; believe is only accessible in early bound COM.&lt;BR /&gt;
&lt;BR /&gt;
I haven't explored it, but its very likely there are managed interfaces&lt;BR /&gt;
for that as well.&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; Is it possible that two different versions might get around this? One&lt;BR /&gt;
&amp;gt;  compiled for 32-bit and the other for 64-bit?&lt;BR /&gt;
&lt;BR /&gt;
Should work, give it a try.  If it does you can setup separate projects&lt;BR /&gt;
and *link* in the common code.&lt;BR /&gt;
&lt;BR /&gt;
In my case I avoid separate 32/64bit versions at all costs.&lt;BR /&gt;
&lt;BR /&gt;
Terry</description>
      <pubDate>Tue, 16 Jun 2009 17:59:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-assembly-loads-in-xp-32-bit-but-not-vista-64-bit/m-p/2507378#M70024</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-16T17:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: .NET assembly loads in XP 32-bit, but not Vista 64-bit</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-assembly-loads-in-xp-32-bit-but-not-vista-64-bit/m-p/2507379#M70025</link>
      <description>Terry W. Dotson wrote:&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; I haven't explored it, but its very likely there are managed&lt;BR /&gt;
&amp;gt; interfaces for that as well.&lt;BR /&gt;
&lt;BR /&gt;
Or maybe not, that may be COM only.&lt;BR /&gt;
&lt;BR /&gt;
Terry</description>
      <pubDate>Tue, 16 Jun 2009 18:03:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-assembly-loads-in-xp-32-bit-but-not-vista-64-bit/m-p/2507379#M70025</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-16T18:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: .NET assembly loads in XP 32-bit, but not Vista 64-bit</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-assembly-loads-in-xp-32-bit-but-not-vista-64-bit/m-p/2507380#M70026</link>
      <description>If you're using late bound ActiveX or SSM, I'm pretty sure&lt;BR /&gt;
your only option is two platform-specific releases.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD 2009&lt;BR /&gt;
Supporting AutoCAD 2000 through 2009&lt;BR /&gt;
&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
Introducing AcadXTabs 2010:&lt;BR /&gt;
http://www.caddzone.com/acadxtabs/AcadXTabs2010.htm&lt;BR /&gt;
&lt;BR /&gt;
Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;CHRISSHOEMAKER4224&gt; wrote in message &lt;BR /&gt;
news:6202660@discussion.autodesk.com...&lt;BR /&gt;
Not specifically...but I am using unmanaged AutoCAD COM componants through &lt;BR /&gt;
Interop (which i suspect is the same thing). I'm using VB.NET to port a VBA &lt;BR /&gt;
application through COM Interop. -Chris&lt;/CHRISSHOEMAKER4224&gt;</description>
      <pubDate>Tue, 16 Jun 2009 19:50:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-assembly-loads-in-xp-32-bit-but-not-vista-64-bit/m-p/2507380#M70026</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-16T19:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: .NET assembly loads in XP 32-bit, but not Vista 64-bit</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-assembly-loads-in-xp-32-bit-but-not-vista-64-bit/m-p/2507381#M70027</link>
      <description>Terry,&lt;BR /&gt;
&lt;BR /&gt;
Side question...how are you tying into Excel with XL2CAD then? I wasn't aware that there are managed API's for Office...just COM.&lt;BR /&gt;
&lt;BR /&gt;
-Chris</description>
      <pubDate>Tue, 16 Jun 2009 21:43:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-assembly-loads-in-xp-32-bit-but-not-vista-64-bit/m-p/2507381#M70027</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-16T21:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: .NET assembly loads in XP 32-bit, but not Vista 64-bit</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-assembly-loads-in-xp-32-bit-but-not-vista-64-bit/m-p/2507382#M70028</link>
      <description>Terry W. Dotson wrote:&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; setup separate projects and *link* in the common code.&lt;BR /&gt;
&lt;BR /&gt;
Something to watch out for.  If I'm not mistaken, code in a *linked*&lt;BR /&gt;
file cannot be changed during the debugging process.  Nothing like being&lt;BR /&gt;
able to edit the code while debugging. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
Terry</description>
      <pubDate>Tue, 16 Jun 2009 22:01:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-assembly-loads-in-xp-32-bit-but-not-vista-64-bit/m-p/2507382#M70028</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-16T22:01:51Z</dc:date>
    </item>
    <item>
      <title>Re: .NET assembly loads in XP 32-bit, but not Vista 64-bit</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-assembly-loads-in-xp-32-bit-but-not-vista-64-bit/m-p/2507383#M70029</link>
      <description>chrisshoemaker4224 wrote:&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; Side question...how are you tying into Excel with XL2CAD then? I&lt;BR /&gt;
&amp;gt; wasn't aware that there are managed API's for Office...just COM.&lt;BR /&gt;
&lt;BR /&gt;
For sake of discussion here, lets just say its late bound COM but&lt;BR /&gt;
doesn't suffer the associated delays.  It's true (AFAIK) that there are&lt;BR /&gt;
no managed APIs for Office.&lt;BR /&gt;
&lt;BR /&gt;
I believe I found you at ___pc.com?  If that's you, email me at dotson&lt;BR /&gt;
[at] dotsoft [dot] com and I'll explain how it works.&lt;BR /&gt;
&lt;BR /&gt;
Terry</description>
      <pubDate>Tue, 16 Jun 2009 22:08:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-assembly-loads-in-xp-32-bit-but-not-vista-64-bit/m-p/2507383#M70029</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-16T22:08:50Z</dc:date>
    </item>
  </channel>
</rss>

