简体   繁体   English

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

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

I upgraded to windows 8.1 Today.我今天升级到 windows 8.1。 After the upgrade I am experiencing the following exception on one of my WPF windows:升级后,我的 WPF windows 之一遇到以下异常:

XAML Exception: Provide value on 'System.Windows.Baml2006.TypeConverterMarkupExtension' threw an exception . 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.在更新我的 windows 之前,我没有遇到此异常。 Note that when I remove the Icon from the window the exception does not occur - Icon="/MyProgram;component/Resources/language.png"请注意,当我从 window 中删除图标时,不会发生异常 - 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我猜测的另一个问题与上述问题有关:当我尝试在 Visual Studio 2013 Update 4 中创建新项目时,出现以下错误

"Failed to create a 'ImageSource' from the text '..\Images\Medium.png' “无法从文本 '..\Images\Medium.png' 创建 'ImageSource'

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我已经尝试过以下解决方案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 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 Visual Studio 2012 无法创建项目

Error when trying to start a new project in Visual Studio 尝试在 Visual Studio 中启动新项目时出错

NET Framework 4.6 did the trick for me, hope it works for you as well! .NET Framework 4.6为我做了伎俩,希望它也适合你!

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

To anybody who comes across this issue. 对任何遇到此问题的人。 Note that that after installing he following two updates the problem was resolved: 请注意,在安装后他执行了两次更新后问题得以解决:

Upgrade to windows 8.1 for x64-based Systems (KB3063843) 升级到基于x64的系统的Windows 8.1(KB3063843)

Upgrade to windows 8.1 for x64-based Systems (KB3068708) 升级到基于x64的系统的Windows 8.1(KB3068708)

I am running a new .NET WebApi site (.Net version 4.5.2) that builds locally on my work-managed Windows 7 PC, and deploys to Windows Server 2012 where I do not have upgrade permissions. 我正在运行一个新的.NET WebApi站点(.Net版本4.5.2),该站点在我的工作管理的Windows 7 PC上本地构建,并部署到我没有升级权限的Windows Server 2012。

I was able to solve this problem and deploy my site by removing the nuget packages for: 我能够通过删除nuget包解决此问题并部署我的网站:

  • Microsoft.AspNet.TelemtryCorrelation
  • System.Diagnostics.DiagnosticSource

我删除了所有应用程序见解包和诊断包。

A palliative is to disable the Application Insights in Azure Configuration Menu for the application.一种缓解方法是禁用应用程序 Azure 配置菜单中的 Application Insights。

But the solution is upgrade System.Diagnostics.DiagnosticSource to the last version.但解决方案是将 System.Diagnostics.DiagnosticSource 升级到最新版本。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 方法未找到:'System.String System.String.Format(System.IFormatProvider, System.String, System.Object) - Method not found: 'System.String System.String.Format(System.IFormatProvider, System.String, System.Object) 找不到方法:'System.String System.String.Format(System.IFormatProvider,System.String,System.Object)' - Method not found: 'System.String System.String.Format(System.IFormatProvider, System.String, System.Object)' 找不到方法:'System.Object Microsoft.EntityFrameworkCore.Infrastructure.IAnnotatable.get_Item(System.String)' - Method not found: 'System.Object Microsoft.EntityFrameworkCore.Infrastructure.IAnnotatable.get_Item(System.String)' LINQ to Entities无法识别方法'System.Object Parse(System.Type,System.String)' - LINQ to Entities does not recognize the method 'System.Object Parse(System.Type, System.String)' System.Object[] 不能转换为 System.String[] - System.Object[] can't be converted to System.String[] 无法将类型“ System.String”强制转换为类型“ System.Object” - Unable to cast the type 'System.String' to type 'System.Object' LINQ to Entities无法识别方法'System.String Concat(System.Object)'方法, - LINQ to Entities does not recognize the method 'System.String Concat(System.Object)' method, 无法将“ System.Object []”转换为类型“ System.String []” - Cannot convert 'System.Object[]' to the type 'System.String[]' LINQ to Entities 无法识别“System.Object get_Item(System.String)”方法 - LINQ to Entities does not recognize the method 'System.Object get_Item(System.String)' method LINQ to Entities无法识别方法'System.Object get_Item(System.String)' - LINQ to Entities does not recognize the method 'System.Object get_Item(System.String)'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM