找不到方法:'Void System.Diagnostics.Tracing.FrameworkEventSource.BeginGetResponse(System.Object,System.String)'

jay*_*age 9 .net c# windows wpf visual-studio-2013

我升级到Windows 8.1今天.升级后,我在其中一个WPF窗口上遇到以下异常:

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)'.
Run Code Online (Sandbox Code Playgroud)

在更新我的窗口之前,我没有收到此异常.请注意,当我从窗口中删除图标时,不会发生异常 - Icon="/MyProgram;component/Resources/language.png"

未处理的堆栈跟踪如下:

    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()
Run Code Online (Sandbox Code Playgroud)

我猜的另一个问题与上面的问题有关:当我尝试在Visual Studio 2013 Update 4中创建一个新项目时,我收到以下错误

"无法从文本'..\Images\Medium.png'创建'ImageSource'

我已经尝试过以下解决方案 http://blogs.msdn.com/b/vsnetsetup/archive/2013/03/19/visual-studio-2012-ide-shows-failed-to-create-a-imagesource-from -the-文字图像-中-巴-同时,访问文件,新文件的开放式对话,boxes.aspx

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

Visual Studio 2012无法创建项目

尝试在Visual Studio中启动新项目时出错

小智 5

.NET Framework 4.6为我做了伎俩,希望它也适合你!

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


jay*_*age 4

对于遇到这个问题的任何人。请注意,安装以下两个更新后问题已解决:

对于基于 x64 的系统升级到 Windows 8.1 (KB3063843)

对于基于 x64 的系统升级到 Windows 8.1 (KB3068708)