After a fair bit of testing, can confirm that this issue can be replicated by applying Windows Update 24h2
Any machine which has not had 24h2 applied, MarkdownPad2 seems fine, as soon as 24h2 is applied, this error occurs on trying to launch.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
my system is win11, and i use the markdownpad2 app ,and recently ,win11 system updated ,and
the markdownpad2 app can't open ,and the error is like below:
Exception Information:
System.Windows.Markup.XamlParseException: The invocation of the constructor on type 'MarkdownPad2.UserControls.MarkdownEditor' that matches the specified binding constraints threw an exception. ---> System.InvalidCastException: Specified cast is not valid.
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
at Microsoft.ClearScript.Util.RawCOMHelpers.QueryInterfaceT
at Microsoft.ClearScript.Windows.ActiveScriptWrapper32..ctor(String progID, WindowsScriptEngineFlags flags)
at Microsoft.ClearScript.Windows.ActiveScriptWrapper.Create(String progID, WindowsScriptEngineFlags flags)
at Microsoft.ClearScript.Windows.WindowsScriptEngine.<>c__DisplayClass2.<.ctor>b__0()
at Microsoft.ClearScript.ScriptEngine.ScriptInvokeT
at Microsoft.ClearScript.Windows.WindowsScriptEngine..ctor(String progID, String name, WindowsScriptEngineFlags flags)
at Microsoft.ClearScript.Windows.JScriptEngine..ctor(String progID, String name, WindowsScriptEngineFlags flags)
at Microsoft.ClearScript.Windows.JScriptEngine..ctor(String name, WindowsScriptEngineFlags flags)
at MarkdownPad2.Markdown.GitHubFlavoredMarkdownOffline..ctor()
at MarkdownPad2.Markdown.MarkdownProcessorProvider.get_MarkdownProcessorMap()
at MarkdownPad2.UserControls.MarkdownEditor.SetMarkdownProcessor(MarkdownProcessorType processor)
at MarkdownPad2.UserControls.MarkdownEditor.LoadEditorSettings()
at MarkdownPad2.UserControls.MarkdownEditor..ctor()
--- End of inner exception stack trace ---
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.LoadBamlStreamWithSyncInfo(Stream stream, ParserContext pc)
at System.Windows.Application.LoadComponent(Uri resourceLocator, Boolean bSkipJournaledProperties)
at System.Windows.Application.DoStartup()
at System.Windows.Application.<.ctor>b__1_0(Object unused)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
I wanner know whethere the problem is occured by the win11 update?
thanks for your reply
After a fair bit of testing, can confirm that this issue can be replicated by applying Windows Update 24h2
Any machine which has not had 24h2 applied, MarkdownPad2 seems fine, as soon as 24h2 is applied, this error occurs on trying to launch.
This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
1 deleted commentComments have been turned off. Learn more