Dear All,
I am developing a common add-in for many desktop applications such as Microsoft Word and Excel, Autodesk AutoCAD and Revit. Many features are the same and use the same code, as does wpf window xaml. I ran into a problem when I use SfBusyIndicator in a window and open it in Revit or AutoCAD. The code throws an unhandled exception when opening the window with the following message:
System.Windows.Markup.XamlParseException
HResult=0x80131501
Message=Non è stato possibile caricare il file o l'assembly 'Syncfusion.SfBusyIndicator.WPF, PublicKeyToken=3d67ed1f87d44c89' o una delle relative dipendenze. Impossibile trovare il file specificato.
Source=PresentationFramework
StackTrace:
at System.Windows.Markup.XamlReader.RewrapException(Exception e, IXamlLineInfo lineInfo, Uri baseUri)
at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
at Tonin.Commessa.Gestione.View.CommessaListUserView.InitializeComponent() in D:\Dati\Source\Gestionale Tonin\Library\Commessa\Gestione\View\Tonin.Commessa.Gestione.View.NET\CommessaInfo\CommessaListUserView.xaml:line 1
at Tonin.Commessa.Gestione.View.CommessaListUserView..ctor() in D:\Dati\Source\Gestionale Tonin\Library\Commessa\Gestione\View\Tonin.Commessa.Gestione.View.NET\CommessaInfo\CommessaListUserView.xaml.cs:line 16
at Unity.ObjectBuilder.BuildPlan.DynamicMethod.DynamicBuildPlanGenerationContext.<>c__DisplayClass16_0.<GetBuildMethod>b__0(IBuilderContext context)
at Unity.Strategies.BuildPlanStrategy.PreBuildUp(IBuilderContext context)
at Unity.UnityContainer.ThrowingBuildUp(IBuilderContext context)
Inner Exception 1:
FileNotFoundException: Non è stato possibile caricare il file o l'assembly 'Syncfusion.SfBusyIndicator.WPF, PublicKeyToken=3d67ed1f87d44c89' o una delle relative dipendenze. Impossibile trovare il file specificato.
No problem, however, if I open the same window in Word or Excel.
the specific xaml code is:
<Notification:SfBusyIndicator>
<ListView DockPanel.Dock="Top" Grid.Row="1" .....> .... </ListView>
</Notification:SfBusyIndicator>
If I remove SfBusyIndicator lines the window open also in AutoCAD and Revit.
What can I do?
Regards in advance
Rolando Tonin