具体日志:
04/07/2020 19:40:20异常:PresentationFramework
System.Windows.Markup.XamlParseException: The invocation of the constructor on type ‘BMCLV2.Windows.FrmMain’ that matches the specified binding constraints threw an exception. —> System.TypeInitializationException: The type initializer for ‘BMCLV2.BmclCore’ threw an exception. —> System.TypeLoadException: Could not load type ‘System.Runtime.CompilerServices.IAsyncStateMachine’ from assembly ‘mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’.
at BMCLV2.BmclCore.ReleaseCheck()
at BMCLV2.BmclCore…cctor()
— End of inner exception stack trace —
at BMCLV2.Windows.FrmMain…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.DoStartup()
at System.Windows.Application.<.ctor>b__1(Object unused)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
The invocation of the constructor on type ‘BMCLV2.Windows.FrmMain’ that matches the specified binding constraints threw an exception.
Key:System.Object
Value:
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.DoStartup()
at System.Windows.Application.<.ctor>b__1(Object unused)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
BMCLNG
System.TypeInitializationException: The type initializer for ‘BMCLV2.BmclCore’ threw an exception. —> System.TypeLoadException: Could not load type ‘System.Runtime.CompilerServices.IAsyncStateMachine’ from assembly ‘mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’.
at BMCLV2.BmclCore.ReleaseCheck()
at BMCLV2.BmclCore…cctor()
— End of inner exception stack trace —
at BMCLV2.Windows.FrmMain…ctor()
The type initializer for ‘BMCLV2.BmclCore’ threw an exception.
Key:System.Object
Value:
at BMCLV2.Windows.FrmMain…ctor()
BMCLNG
System.TypeLoadException: Could not load type ‘System.Runtime.CompilerServices.IAsyncStateMachine’ from assembly ‘mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’.
at BMCLV2.BmclCore.ReleaseCheck()
at BMCLV2.BmclCore…cctor()
Could not load type ‘System.Runtime.CompilerServices.IAsyncStateMachine’ from assembly ‘mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’.
Key:System.Object
Value:
at BMCLV2.BmclCore.ReleaseCheck()
at BMCLV2.BmclCore…cctor()