Skip to content

System.Reflection.TargetInvocationException: 调用的目标发生了异常 #58

@maxwellhouse102

Description

@maxwellhouse102

[2021-04-25 22:39:56] [ERROR]
System.Reflection.TargetInvocationException: 调用的目标发生了异常。 ---> System.DllNotFoundException: 无法加载 DLL“Shcore.dll”: 找不到指定的模块。 (异常来自 HRESULT:0x8007007E)。
在 ProjectEye.Core.ScreenExtensions.GetDpiForMonitor(IntPtr hmonitor, DpiType dpiType, UInt32& dpiX, UInt32& dpiY)
在 ProjectEye.Core.ScreenExtensions.GetDpi(Screen screen, DpiType dpiType, UInt32& dpiX, UInt32& dpiY)
在 ProjectEye.Core.WindowManager.GetSize(Screen screen)
在 ProjectEye.Core.WindowManager.CreateWindow(String name, Boolean isMaximized, Boolean newViewModel)
在 ProjectEye.Core.Service.MainService.CreateTipWindows()
在 ProjectEye.Core.Service.MainService.Init()
--- 内部异常堆栈跟踪的结尾 ---
在 System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
在 System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
在 System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
在 ProjectEye.Core.Service.ServiceCollection.Initialize()
在 ProjectEye.App.OnStartup(StartupEventArgs e)
在 System.Windows.Application.<.ctor>b__1_0(Object unused)
在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions