[GH-ISSUE #312] 'System.Windows.Markup.StaticExtension' threw an exception. #256

Closed
opened 2026-02-26 09:30:45 +03:00 by kerem · 1 comment
Owner

Originally created by @ghost on GitHub (Apr 10, 2018).
Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/312

  1. I download the portable version release 2.13
  2. I double click on the exe
  3. I click on "Recorder"
  4. I click on "Record"
  5. I wait some seconds
  6. I Click on "Stop"
  7. I get an XamlParserException exception:

Provide value on 'System.Windows.Markup.StaticExtension' threw an exception.

   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 ScreenToGif.Windows.Editor..ctor()
   at ScreenToGif.Util.Model.ApplicationViewModel.ShowEditor(ProjectInfo project)
   at ScreenToGif.Util.Model.ApplicationViewModel.<>c__DisplayClass3_0.<get_OpenRecorder>b__3(Object sender, EventArgs args)
   at System.Windows.Window.OnClosed(EventArgs e)
   at System.Windows.Window.WmDestroy()
   at System.Windows.Window.WindowFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at System.Windows.Interop.HwndSource.PublicHooksFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   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)
Originally created by @ghost on GitHub (Apr 10, 2018). Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/312 1. I download the portable version release 2.13 2. I double click on the exe 3. I click on "Recorder" 4. I click on "Record" 5. I wait some seconds 6. I Click on "Stop" 7. I get an `XamlParserException` exception: `Provide value on 'System.Windows.Markup.StaticExtension' threw an exception.` ``` 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 ScreenToGif.Windows.Editor..ctor() at ScreenToGif.Util.Model.ApplicationViewModel.ShowEditor(ProjectInfo project) at ScreenToGif.Util.Model.ApplicationViewModel.<>c__DisplayClass3_0.<get_OpenRecorder>b__3(Object sender, EventArgs args) at System.Windows.Window.OnClosed(EventArgs e) at System.Windows.Window.WmDestroy() at System.Windows.Window.WindowFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at System.Windows.Interop.HwndSource.PublicHooksFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) 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) ```
kerem closed this issue 2026-02-26 09:30:45 +03:00
Author
Owner

@NickeManarin commented on GitHub (Apr 11, 2018):

Hi, this is caused by a bug with the January 2018 update of .Net Framework 4.7.1 for Windows 7 SP1

Here:

https://github.com/NickeManarin/ScreenToGif/issues/257

<!-- gh-comment-id:380300931 --> @NickeManarin commented on GitHub (Apr 11, 2018): Hi, this is caused by a bug with the January 2018 update of .Net Framework 4.7.1 for Windows 7 SP1 Here: https://github.com/NickeManarin/ScreenToGif/issues/257
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ScreenToGif#256
No description provided.