2012-10-09 5 views
0

을 실행하는 동안은 거의이다, 7예외 WPF 응용 프로그램

System.DllNotFoundException was unhandled 
    Message=Unable to load DLL 'dwmapi.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E) 
    Source=*************************** 
    TypeName="" 
    StackTrace: 
     at Presentation.Common.MetroWindowBase.NativeMethods.DwmSetWindowAttribute(IntPtr , Int32 , Int32& , Int32) 
     at Presentation.Common.MetroWindowBase.HandleSourceInitialized(Object sender, EventArgs e) 
     at System.Windows.Window.OnSourceInitialized(EventArgs e) 
     at System.Windows.Window.CreateSourceWindow(Boolean duringShow) 
     at System.Windows.Window.CreateSourceWindowDuringShow() 
     at System.Windows.Window.SafeCreateWindowDuringShow() 
     at System.Windows.Window.ShowHelper(Object booleanBox) 
     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) 
     at System.Windows.Threading.DispatcherOperation.InvokeImpl() 
     at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state) 
     at System.Threading.ExecutionContext.runTryCode(Object userData) 
     at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) 
     at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) 
     at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx) 
     at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) 
     at System.Windows.Threading.DispatcherOperation.Invoke() 
     at System.Windows.Threading.Dispatcher.ProcessQueue() 
     at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) 
     at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) 
     at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) 
     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) 
     at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) 
     at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) 
     at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg) 
     at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame) 
     at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame) 
     at System.Windows.Application.RunDispatcher(Object ignore) 
     at System.Windows.Application.RunInternal(Window window) 
     at System.Windows.Application.Run(Window window) 
     at ********************* 
    InnerException: 
+0

'dwmapi.dll'을 프로젝트에 복사하고 동일한 프로젝트에 참조를 추가하십시오. – Sender

답변

1

바탕 화면 창 관리자가 비스타에 도입 된 창에서 잘 윈도우 XP에서 WPF 기반 응용 프로그램을 실행하려고 다음과 같은 오류를 실행 무엇입니까 XP에서 XP를 로딩 할 수없는 이유는 무엇입니까?

this related question을보고 문제가 해결되는지 확인해야합니다.

+0

이상하게도 사용하고있는 .net 라이브러리에는 DWM 의존성이 있습니다. – TrustyCoder