Click here to Skip to main content
15,886,873 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am trying to open the WinAppDriver UI Recorder v1.0 RC in Visual Studio 2017. I have downloaded the source code from the below mentioned URL:

https://github.com/microsoft/WinAppDriver/releases/tag/UiR_v1.0-RC

However, when I open the WinAppDriver-UiR_v1.0-RC\WinAppDriver-UiR_v1.0-RC\Tools\UIRecorder and click on WinAppDriverUIRecorder.sln it shows below error. Please guide me to correct this issue.
System.DllNotFoundException
  HResult=0x80131524
  Message=Unable to load DLL 'UIXPathLib.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
  Source=WinAppDriverUiRecorder
  StackTrace:
   at WinAppDriverUIRecorder.NativeMethods.InitUiTreeWalk()
   at WinAppDriverUIRecorder.App.OnStartup(StartupEventArgs e) in C:\Users\Keyur.Raval\Downloads\WinAppDriver-UiR_v1.0-RC\WinAppDriver-UiR_v1.0-RC\Tools\UIRecorder\UiRecorder\App.xaml.cs:line 38
   at System.Windows.Application.<.ctor>b__1_0(Object unused)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.DispatcherOperation.InvokeImpl()
   at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext 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 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(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.Application.RunDispatcher(Object ignore)
   at System.Windows.Application.RunInternal(Window window)
   at WinAppDriverUIRecorder.App.Main()


What I have tried:

I have tried searching on google but it did not work.
Posted
Updated 19-Jun-22 19:01pm
v3
Comments
Richard MacCutchan 17-Jun-22 7:26am    
Look at the error message:
Message=Unable to load DLL 'UIXPathLib.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

The application requires a library that cannot be found on your system. You need to contact the person who created the project for advice.
RickZeeland 17-Jun-22 8:00am    
What Windows version are you using? it seems to run only on Windows 10.
Keyur Raval 2022 20-Jun-22 1:00am    
I am using Windows 10. I am also getting below error message:

MSB8036 The Windows SDK version 10.0.16299.0 was not found. Install the required version of Windows SDK or change the SDK version in the project property pages or by right-clicking the solution and selecting "Retarget solution". UIXPathLib C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets\Microsoft.Cpp.WindowsSDK.targets

1 solution

See steps here on how to install the missing dll:
A Programmer's Day: How to download and run WinAppDriver UI Recorder[^]

The dll can be found in the WinAppDriverUIRecorder.zip file.
Make sure it is copied to your bin directory where your .exe is.
It might be needed to set the properties in the solution explorer to "Copy always".

Use the Visual Studio installer to install the Windows SDK version 10.0.16299, like in the example here: How do I install Windows 10 SDK for use with Visual Studio 2017 - Stack Overflow[^]
 
Share this answer
 
v4

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900