Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Method not found: 'Void System.Diagnostics.Tracing.FrameworkEventSource.BeginGetResponse(System.Object, System.String)'

I upgraded to windows 8.1 Today. After the upgrade I am experiencing the following exception on one of my WPF windows:

XAML Exception: Provide value on 'System.Windows.Baml2006.TypeConverterMarkupExtension' threw an exception.

Inner Exception: Method not found: 'Void System.Diagnostics.Tracing.FrameworkEventSource.BeginGetResponse(System.Object, System.String)'.

I was not getting this exception before updating my windows. Note that when I remove the Icon from the window the exception does not occur - Icon="/MyProgram;component/Resources/language.png"

Unhandled stack trace is a follows:

    Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Windows.Markup.XamlParseException
Stack:
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
   at System.Windows.Threading.DispatcherOperation.InvokeImpl()
   at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(System.Object)
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
   at System.Windows.Threading.DispatcherOperation.Invoke()
   at System.Windows.Threading.Dispatcher.ProcessQueue()
   at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
   at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
   at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
   at MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef)
   at System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)
   at System.Windows.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame)
   at System.Windows.Application.RunDispatcher(System.Object)
   at System.Windows.Application.RunInternal(System.Windows.Window)
   at System.Windows.Application.Run(System.Windows.Window)
   at System.Windows.Application.Run()
   at MaxCut.App.Main()

Another issue which I am guessing is related to the one above: When I try to create a new project in Visual Studio 2013 Update 4, I get the following Error

"Failed to create a 'ImageSource' from the text '..\Images\Medium.png'

I have already tried the following solutions http://blogs.msdn.com/b/vsnetsetup/archive/2013/03/19/visual-studio-2012-ide-shows-failed-to-create-a-imagesource-from-the-text-images-medium-png-while-accessing-file-new-file-open-dialog-boxes.aspx

https://connect.microsoft.com/VisualStudio/feedback/details/830040/failed-to-create-a-imagesource-from-the-text-images-medium-png

Visual Studio 2012 failed to create project

Error when trying to start a new project in Visual Studio

like image 888
jayd page Avatar asked Aug 19 '15 13:08

jayd page


1 Answers

NET Framework 4.6 did the trick for me, hope it works for you as well!

http://www.microsoft.com/en-us/download/confirmation.aspx?id=44928

like image 104
Alex Finelt Avatar answered Oct 21 '22 20:10

Alex Finelt