I can build and run my solution on any computer I have tested with no problems, but after creating a clickonce-installer and installing the program crashes instantaneously when I run it. I get the "Program has stopped working"-windows dialogue. If I attach a debugger, I get a xamlparseexception:
I suspect one of the following two lines to be the problem:
1(*) xmlns:syncfusion="http://schemas.syncfusion.com/wpf"
2(**) xmlns:syncfusionskin="clr-namespace:Syncfusion.SfSkinManager;assembly=Syncfusion.SfSkinManager.WPF"
System.Windows.Markup.XamlParseException was unhandled
Message: An unhandled exception of type 'System.Windows.Markup.XamlParseException' occurred in PresentationFramework.dll
Additional information: 'The invocation of the constructor on type 'Analyze_2017.frontend.MainWindow' that matches the specified binding constraints threw an exception.' Line number '8' and line position '9'.
This corresponds to the line marked 1(*) above. Weirdly enough - if I switch line 1(*) with line 2(**) and attach the debugger, I still get the same xamlparseexception - still at Line number 8, even though the two lines were switched.
Any ideas on how I could fix this? If you need more information, please don't hesitate to ask!