0

我在 .NET 4.0 中有一项服务。(C#),我需要加载用 .NET 4.5 编码的新程序集。使用方法 Invoke (Methodinfo / Reflection),服务会显示以下错误消息:“调用目标已引发异常”。在 InnerException 中,我得到“System.TypeInitializationException:“System.Windows.FrameworkElement”的类型初始化程序引发了异常。”有人可以帮我吗?

--> 异常消息:调用的目标已抛出异常。--> 完整的内部异常:System.TypeInitializationException:“System.Windows.FrameworkElement”的类型初始化程序引发了异常。---> System.TypeInitializationException:“System.Windows.Media.Transform”的类型初始化程序引发了异常。---> System.ComponentModel.Win32Exception: 操作在 MS.Win32.HwndWrapper..ctor(Int32 classStyle, Int32 style, Int32 exStyle, Int32 x, Int32 y, Int32 width, Int32 height, String name, IntPtr parent , HwndWrapperHook[] hooks) at System.Windows.Threading.Dispatcher..ctor() at System.Windows.DependencyObject..ctor() at System.Windows.Media.Transform..cctor() --- 内部异常结束堆栈跟踪 --- 在 System.

4

0 回答 0