<?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: sharpdevelop error in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/sharpdevelop-error/m-p/5813744#M70614</link>
    <description>&lt;P&gt;I'm working on a WPF component that will display fill patterns in a wpf window. The reason I know it's not my code is because the error comes up (or goes away) even when I don't make any changes to the code. I'm running the exact same data through the macro. Also the error happens when the wpf window is initializing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can only guess it is something to do with Sharpdevelp. I've also had Revit crash completely when I try to run a macro that I know works. Unfortunately, it is not reproducible. It happens at random.&lt;/P&gt;</description>
    <pubDate>Fri, 11 Sep 2015 23:05:14 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-09-11T23:05:14Z</dc:date>
    <item>
      <title>sharpdevelop error</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/sharpdevelop-error/m-p/5805858#M70612</link>
      <description>&lt;P&gt;ANyone know why this error happens:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;System.Windows.Markup.XamlParseException: 'Set connectionId threw an exception.' Line number '112' and line position '6'. ---&amp;gt; System.InvalidCastException: [A]Alphas.FillPatternViewer.FillPatternViewerControlWpf cannot be cast to [B]Alphas.FillPatternViewer.FillPatternViewerControlWpf. Type A originates from 'Alphas, Version=1.0.5728.386, Culture=neutral, PublicKeyToken=null' in the context 'LoadNeither' in a byte array. Type B originates from 'Alphas, Version=1.0.5728.386, Culture=neutral, PublicKeyToken=null' in the context 'LoadNeither' in a byte&lt;/EM&gt; array.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems to happen at&amp;nbsp;random. I know it has nothing to do with my code. I build my macro--it shows this error when I try to run---I re-build the macro with no changes---the macro runs fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's really annoying because sometimes I have to rebuild the macro 4 times before it works and sometimes I have to restart Revit completely.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Sep 2015 08:18:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/sharpdevelop-error/m-p/5805858#M70612</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-07T08:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: sharpdevelop error</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/sharpdevelop-error/m-p/5811763#M70613</link>
      <description>&lt;P&gt;Hi pkhlineworks,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The error code itself does not ring a bell to me.&amp;nbsp;But since nobody seems to have any suggestion, let me try to suggest something. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You wrote "&lt;SPAN&gt;I know it has nothing to do with my code.&lt;/SPAN&gt;". &amp;nbsp;Does this happen with a simple hello world code? &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also try to see if it happens with a sample rvt files, or specific files. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sometimes when an error shows up irregularly, one possibility is that a value are not correctly initialized. You may want to try stripping out a code and see if you can narrow down the issue. &amp;nbsp;Once you can create a minimum, reproduciable sample, it will help investigate further.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may also try running with add-in so that you may be able to if it is only with macro environment or Revit API.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2015 20:04:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/sharpdevelop-error/m-p/5811763#M70613</guid>
      <dc:creator>mikako_harada</dc:creator>
      <dc:date>2015-09-10T20:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: sharpdevelop error</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/sharpdevelop-error/m-p/5813744#M70614</link>
      <description>&lt;P&gt;I'm working on a WPF component that will display fill patterns in a wpf window. The reason I know it's not my code is because the error comes up (or goes away) even when I don't make any changes to the code. I'm running the exact same data through the macro. Also the error happens when the wpf window is initializing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can only guess it is something to do with Sharpdevelp. I've also had Revit crash completely when I try to run a macro that I know works. Unfortunately, it is not reproducible. It happens at random.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Sep 2015 23:05:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/sharpdevelop-error/m-p/5813744#M70614</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-11T23:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: sharpdevelop error</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/sharpdevelop-error/m-p/7191257#M70615</link>
      <description>&lt;P&gt;Check this solution out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/revit-api-forum/can-t-debug-using-sharpdevelop/m-p/6684763/highlight/false#M19407" target="_self"&gt;https://forums.autodesk.com/t5/revit-api-forum/can-t-debug-using-sharpdevelop/m-p/6684763/highlight/false#M19407&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2017 17:34:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/sharpdevelop-error/m-p/7191257#M70615</guid>
      <dc:creator>RmsMali</dc:creator>
      <dc:date>2017-06-29T17:34:18Z</dc:date>
    </item>
  </channel>
</rss>

