<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Debuggen met Express Edition</title>
	<atom:link href="http://cad.huiz.net/2009/12/27/debuggen-met-express-edition/feed/" rel="self" type="application/rss+xml" />
	<link>http://cad.huiz.net/2009/12/27/debuggen-met-express-edition/</link>
	<description>DotNet voor AutoCAD</description>
	<lastBuildDate>Sat, 26 Jun 2010 18:19:54 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: EFL</title>
		<link>http://cad.huiz.net/2009/12/27/debuggen-met-express-edition/comment-page-1/#comment-32</link>
		<dc:creator>EFL</dc:creator>
		<pubDate>Wed, 02 Jun 2010 10:45:47 +0000</pubDate>
		<guid isPermaLink="false">http://cad.huiz.net/?p=6#comment-32</guid>
		<description>Ik heb alle versies gebruikt met hetzelfde resultaat.
Een paar dagen later (waarschijnlijk na een update van MS) kreeg ik een melding dat er iets van .NET Framework 2.0 gemist werd.
Toen heb ik .NET Framework 3.x gebruikt ging het wel weer met als resultaat dat &quot;HelloWorld&quot; wel werkte maar een simpele code uit de help van Acad2010 resulteerde in een &quot;FATALERROR&quot;</description>
		<content:encoded><![CDATA[<p>Ik heb alle versies gebruikt met hetzelfde resultaat.<br />
Een paar dagen later (waarschijnlijk na een update van MS) kreeg ik een melding dat er iets van .NET Framework 2.0 gemist werd.<br />
Toen heb ik .NET Framework 3.x gebruikt ging het wel weer met als resultaat dat "HelloWorld" wel werkte maar een simpele code uit de help van Acad2010 resulteerde in een "FATALERROR"</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anton</title>
		<link>http://cad.huiz.net/2009/12/27/debuggen-met-express-edition/comment-page-1/#comment-30</link>
		<dc:creator>Anton</dc:creator>
		<pubDate>Thu, 20 May 2010 12:41:19 +0000</pubDate>
		<guid isPermaLink="false">http://cad.huiz.net/?p=6#comment-30</guid>
		<description>Je moet heel zeker weten dat het project dat je debugged, ook gebruikt in AutoCAD, en niet per ongeluk de Release versie inleest.</description>
		<content:encoded><![CDATA[<p>Je moet heel zeker weten dat het project dat je debugged, ook gebruikt in AutoCAD, en niet per ongeluk de Release versie inleest.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: EFL</title>
		<link>http://cad.huiz.net/2009/12/27/debuggen-met-express-edition/comment-page-1/#comment-29</link>
		<dc:creator>EFL</dc:creator>
		<pubDate>Thu, 20 May 2010 10:36:21 +0000</pubDate>
		<guid isPermaLink="false">http://cad.huiz.net/?p=6#comment-29</guid>
		<description>Wat ik nu net ontdek is dat als ik een breakpoint zet in de code dat daar niet gestopt wordt.
Met F5 (of F8) start ik de debug, Acad2010 start op en doe netjes NETLOAD en geef het commando wat ik gemaakt heb waarna Acad het programma ook afwerkt.
Ik kan nu in Acad2010 mijn .dll laden en uitvoeren maar nog niet debuggen, waar het mij nu om gaat.

Ik gebruik &quot;MS VB 2010 Express&quot;</description>
		<content:encoded><![CDATA[<p>Wat ik nu net ontdek is dat als ik een breakpoint zet in de code dat daar niet gestopt wordt.<br />
Met F5 (of F8) start ik de debug, Acad2010 start op en doe netjes NETLOAD en geef het commando wat ik gemaakt heb waarna Acad het programma ook afwerkt.<br />
Ik kan nu in Acad2010 mijn .dll laden en uitvoeren maar nog niet debuggen, waar het mij nu om gaat.</p>
<p>Ik gebruik "MS VB 2010 Express"</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anton</title>
		<link>http://cad.huiz.net/2009/12/27/debuggen-met-express-edition/comment-page-1/#comment-28</link>
		<dc:creator>Anton</dc:creator>
		<pubDate>Wed, 19 May 2010 07:12:25 +0000</pubDate>
		<guid isPermaLink="false">http://cad.huiz.net/?p=6#comment-28</guid>
		<description>Mooi dat je de oplossing gevonden hebt!</description>
		<content:encoded><![CDATA[<p>Mooi dat je de oplossing gevonden hebt!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: EFL</title>
		<link>http://cad.huiz.net/2009/12/27/debuggen-met-express-edition/comment-page-1/#comment-27</link>
		<dc:creator>EFL</dc:creator>
		<pubDate>Tue, 18 May 2010 14:36:36 +0000</pubDate>
		<guid isPermaLink="false">http://cad.huiz.net/?p=6#comment-27</guid>
		<description>Ik ben nog wat aan het zoeken geweest en heb een oplossing gevonden:

In de Solution Explorer met rechts klikken en kies properties...
In het venster war volgt kun je op het tabblad &quot;Compile&quot; klikken...
Hier kies je (onderaan) de knop [Advanced Compile Options...]
Onderin het venster wat verschijnt zie je &quot;Target framework (all configurations):&quot;
Kies hier &quot;.NET Framework 2.0&quot;

Dat was mijn oplossing, overigens samen met het bovenstaande (projectnaam.vbproj.user aanpassen)</description>
		<content:encoded><![CDATA[<p>Ik ben nog wat aan het zoeken geweest en heb een oplossing gevonden:</p>
<p>In de Solution Explorer met rechts klikken en kies properties...<br />
In het venster war volgt kun je op het tabblad "Compile" klikken...<br />
Hier kies je (onderaan) de knop [Advanced Compile Options...]<br />
Onderin het venster wat verschijnt zie je "Target framework (all configurations):"<br />
Kies hier ".NET Framework 2.0"</p>
<p>Dat was mijn oplossing, overigens samen met het bovenstaande (projectnaam.vbproj.user aanpassen)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: EFL</title>
		<link>http://cad.huiz.net/2009/12/27/debuggen-met-express-edition/comment-page-1/#comment-26</link>
		<dc:creator>EFL</dc:creator>
		<pubDate>Tue, 18 May 2010 11:00:01 +0000</pubDate>
		<guid isPermaLink="false">http://cad.huiz.net/?p=6#comment-26</guid>
		<description>Ik heb een hele mooie Class1.vb gemaakt naar het voorbeeld van Stephen Preston (Autodesk Inc):

[code]
Imports Autodesk.AutoCAD.Runtime
Imports Autodesk.AutoCAD.ApplicationServices
Imports Autodesk.AutoCAD.DatabaseServices

Public Class Class1

  &lt;CommandMethod(&quot;HelloWorld&quot;)&gt; _
  Public Sub MyMethod()
    Application.ShowAlertDialog(&quot;Hello World from VB.NET!&quot;)
  End Sub
End Class
[/code]

Hierna heb ik de &quot;Test20100518.vbproj.user&quot; aangepast en zie er nu zo uit volgens het voorbeeld van deze site:

[code]
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;Project ToolsVersion=&quot;4.0&quot; xmlns=&quot;http://schemas.microsoft.com/developer/msbuild/2003&quot;&gt;
  &lt;PropertyGroup Condition=&quot; &#039;$(Configuration)&#124;$(Platform)&#039; == &#039;Debug&#124;AnyCPU&#039; &quot;&gt;
    &lt;StartAction&gt;Program&lt;/StartAction&gt;
    &lt;StartProgram&gt;C:\Program Files\AutoCAD 2010\acad.exe&lt;/StartProgram&gt;
    &lt;StartWorkingDirectory&gt;C:\Program Files\AutoCAD 2010\&lt;/StartWorkingDirectory&gt;
    &lt;ProjectView&gt;ShowAllFiles&lt;/ProjectView&gt;
  &lt;/PropertyGroup&gt;
&lt;/Project&gt;  
[/code]

Na het bovenstaande toegepast te hebben in MS VB 2010 Express, druk ik F5 en Acad 2010 start,
dan het commando &quot;NETLOAD&quot;  en krijg ik de volgende melding:

Command: NETLOAD
Cannot load assembly. Error details: System.BadImageFormatException: Could not 
load file or assembly &#039;file:///U:\Visual Studio 
2010\Projects\Test20100518\Test20100518\bin\Debug\Test20100518.dll&#039; or one of 
its dependencies. This assembly is built by a runtime newer than the currently 
loaded runtime and cannot be loaded.
File name: &#039;file:///U:\Visual Studio 
2010\Projects\Test20100518\Test20100518\bin\Debug\Test20100518.dll&#039;
   at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, 
Evidence assemblySecurity, Assembly locationHint, StackCrawlMark&amp; stackMark, 
Boolean throwOnFileNotFound, Boolean forIntrospection)
   at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, 
Evidence assemblySecurity, Assembly locationHint, StackCrawlMark&amp; stackMark, 
Boolean throwOnFileNotFound, Boolean forIntrospection)
   at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, 
Evidence assemblySecurity, StackCrawlMark&amp; stackMark, Boolean forIntrospection)
   at System.Reflection.Assembly.InternalLoadFrom(String assemblyFile, Evidence 
securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, 
Boolean forIntrospection, StackCrawlMark&amp; 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].

Vervolgens heb ik geen nieuw commando: &quot;HelloWorld&quot;
Wat doe ik niet goed of wat is er mis?</description>
		<content:encoded><![CDATA[<p>Ik heb een hele mooie Class1.vb gemaakt naar het voorbeeld van Stephen Preston (Autodesk Inc):</p>
<pre class="brush: plain;">
Imports Autodesk.AutoCAD.Runtime
Imports Autodesk.AutoCAD.ApplicationServices
Imports Autodesk.AutoCAD.DatabaseServices

Public Class Class1

  &lt;CommandMethod(&quot;HelloWorld&quot;)&gt; _
  Public Sub MyMethod()
    Application.ShowAlertDialog(&quot;Hello World from VB.NET!&quot;)
  End Sub
End Class
</pre>
<p>Hierna heb ik de "Test20100518.vbproj.user" aangepast en zie er nu zo uit volgens het voorbeeld van deze site:</p>
<pre class="brush: plain;">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;Project ToolsVersion=&quot;4.0&quot; xmlns=&quot;http://schemas.microsoft.com/developer/msbuild/2003&quot;&gt;
  &lt;PropertyGroup Condition=&quot; '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' &quot;&gt;
    &lt;StartAction&gt;Program&lt;/StartAction&gt;
    &lt;StartProgram&gt;C:\Program Files\AutoCAD 2010\acad.exe&lt;/StartProgram&gt;
    &lt;StartWorkingDirectory&gt;C:\Program Files\AutoCAD 2010\&lt;/StartWorkingDirectory&gt;
    &lt;ProjectView&gt;ShowAllFiles&lt;/ProjectView&gt;
  &lt;/PropertyGroup&gt;
&lt;/Project&gt;
</pre>
<p>Na het bovenstaande toegepast te hebben in MS VB 2010 Express, druk ik F5 en Acad 2010 start,<br />
dan het commando "NETLOAD"  en krijg ik de volgende melding:</p>
<p>Command: NETLOAD<br />
Cannot load assembly. Error details: System.BadImageFormatException: Could not<br />
load file or assembly 'file:///U:\Visual Studio<br />
2010\Projects\Test20100518\Test20100518\bin\Debug\Test20100518.dll' or one of<br />
its dependencies. This assembly is built by a runtime newer than the currently<br />
loaded runtime and cannot be loaded.<br />
File name: 'file:///U:\Visual Studio<br />
2010\Projects\Test20100518\Test20100518\bin\Debug\Test20100518.dll'<br />
   at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase,<br />
Evidence assemblySecurity, Assembly locationHint, StackCrawlMark&amp; stackMark,<br />
Boolean throwOnFileNotFound, Boolean forIntrospection)<br />
   at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase,<br />
Evidence assemblySecurity, Assembly locationHint, StackCrawlMark&amp; stackMark,<br />
Boolean throwOnFileNotFound, Boolean forIntrospection)<br />
   at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef,<br />
Evidence assemblySecurity, StackCrawlMark&amp; stackMark, Boolean forIntrospection)<br />
   at System.Reflection.Assembly.InternalLoadFrom(String assemblyFile, Evidence<br />
securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm,<br />
Boolean forIntrospection, StackCrawlMark&amp; stackMark)<br />
   at System.Reflection.Assembly.LoadFrom(String assemblyFile)<br />
   at Autodesk.AutoCAD.Runtime.ExtensionLoader.Load(String fileName)<br />
   at loadmgd()</p>
<p>WRN: Assembly binding logging is turned OFF.<br />
To enable assembly bind failure logging, set the registry value<br />
[HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.<br />
Note: There is some performance penalty associated with assembly bind failure<br />
logging.<br />
To turn this feature off, remove the registry value<br />
[HKLM\Software\Microsoft\Fusion!EnableLog].</p>
<p>Vervolgens heb ik geen nieuw commando: "HelloWorld"<br />
Wat doe ik niet goed of wat is er mis?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
