punker76 / MahApps.Metro.SimpleChildWindow

A simple child window for MahApps.Metro
MIT License
374 stars 55 forks source link

SimpleChildWindow File Load Exception #122

Closed CarterAAelect closed 4 years ago

CarterAAelect commented 4 years ago

Hi All, having a bit of trouble with the SimpleChildWindow (Which is AWESOME!) after updating to 2.2.0 simplechildwindow fails to open with a File Load Exception, error below;

System.Windows.Markup.XamlParseException HResult=0x80131501 Message='Initialization of 'MahApps.Metro.SimpleChildWindow.ChildWindow' threw an exception.' Line number '61' and line position '40'. Source=PresentationFramework StackTrace: 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 System.Windows.Application.LoadComponent(Object component, Uri resourceLocator) at AssetTracking.Controls.UserSettings.InitializeComponent() in V:\Software\AssetTracking\AssetTracking\Controls\UserSettings.xaml:line 1

Inner Exception 1: FileLoadException: Could not load file or assembly 'MahApps.Metro, PublicKeyToken=null' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

** Have tried updating several different projects all with the same result, once I get into the 2.x the child window fails, also tried starting with a new project.

I'm sure I'm missing something, I'm just not seeing it.

any help would be greatly apricated thanks, carter

Capture1 Capture2

.

timunie commented 4 years ago

Hi @CarterAAelect Please check your version of SimpleChildWindow. Right now it needs to be the latest prerelease as in MahApps.Metro there were a lot of breaking changes.

Happy coding Tim

CarterAAelect commented 4 years ago

Augggg, Brian dead, I forgot pre-release was turned off. Thank you! Sorry!

From: Tim notifications@github.com Sent: Saturday, August 8, 2020 2:16 AM To: punker76/MahApps.Metro.SimpleChildWindow MahApps.Metro.SimpleChildWindow@noreply.github.com Cc: Carter Howard carterhoward@aaelect.com; Mention mention@noreply.github.com Subject: Re: [punker76/MahApps.Metro.SimpleChildWindow] SimpleChildWindow File Load Exception (#122)

(CAUTION: External Email)

Hi @CarterAAelecthttps://github.com/CarterAAelect Please check your version of SimpleChildWindow. Right now it needs to be the latest prerelease as in MahApps.Metro there were a lot of breaking changes.

Happy coding Tim

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/punker76/MahApps.Metro.SimpleChildWindow/issues/122#issuecomment-670849119, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AKV42B3EH4SPDKXNGQMWHNLR7UJUFANCNFSM4PX7KPTA.

timunie commented 4 years ago

@CarterAAelect you are welcome. If your issue is solved please remember to close this issue. Thx.

eliezeralmeida commented 3 years ago

I solved it by installing version 2.0.0-alpha0043. Thanks for the topic :)