sharpdevelop error

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
ANyone know why this error happens:
System.Windows.Markup.XamlParseException: 'Set connectionId threw an exception.' Line number '112' and line position '6'. ---> 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 array.
It seems to happen at 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.
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.