question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The UWP example doesn't work

See original GitHub issue

Hi,

I tested the CoreHook.UWP.FileMonitor but it doesn’t work. Am I doing something wrong?

When I launch (with admin privilege) dotnet CoreHook.UWP.FileMonitor.dll Microsoft.WindowsCalculator_8wekyb3d8bbwe!App, the calculator launched but then freezed, and after some time, an exception threw and then the calculator terminated. Also tried to launch Microsoft.MinecraftUWP_8wekyb3d8bbwe!App but also freezed. When launch without admin privilege, the UWP won’t freeze or close but same exception throws.

Unhandled Exception: System.TimeoutException: Unable to wait for injection completion.
   at CoreHook.ManagedHook.Remote.InjectionHelper.WaitForInjection(Int32 InTargetPID) in D:\Documents\Visual Studio 2017\Projects\CoreHook\CoreHook.ManagedHook\Remote\InjectionLoader.cs:line 110
   at CoreHook.ManagedHook.Remote.RemoteHooking.InjectEx(Int32 hostPID, Int32 targetPID, Int32 wakeUpTID, String lbraryPath_x86, String libraryPath_x64, Boolean InCanBypassWOW64, String coreRunDll, String coreLoadDll, String coreClrPath, String coreLibrariesPath, IPipePlatform pipePlatform, IEnumerable`1 dependencies, Object[] InPassThruArgs) in D:\Documents\Visual Studio 2017\Projects\CoreHook\CoreHook.ManagedHook\Remote\RemoteHooking.cs:line 221
...

OS: Windows 10 Pro 17134 .NET Core: 2.1.2 Environment Vars: CORE_LIBRARIES and CORE_ROOT set to C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.1.2 Both corehook64.dll and CoreRunDLL64.dll are put in the same directory as CoreHook.UWP.FileMonitor.dll

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:42 (23 by maintainers)

github_iconTop GitHub Comments

2reactions
unknownv2commented, Sep 7, 2018

Perfect, thank you. Looks like a access pipe issue, so I updated the UWP pipe access code. Try pulling latest changes and try again.

I will also go ahead and add that path fix!

1reaction
unknownv2commented, Sep 7, 2018

That’s great to hear!!

Thank you for being patient and working together to get it resolved. I hope you have a fun time playing with the library!

Read more comments on GitHub >

github_iconTop Results From Across the Web

uwp executable file does not run
Hello Microsoft Developer team, I have the following problem: I created a blank UWP application using visual studio community edition 2017.
Read more >
UWP App Error on creating
1 Answer 1 · Hey So I just finished the VS repair. · To everyone who has the same problem, don't wate your...
Read more >
Troubleshooting C++/WinRT issues - UWP applications
Loading a C++/WinRT solution for the first time produces "Designtime build failed for project 'MyProject. vcxproj' configuration 'Debug|x86'.
Read more >
[UWP][C#] unahndled exception not working in UWP app
i am trying to catch unhandled exception in UWP app using below code but app just terminates with out hitting break point, is...
Read more >
Why is everyone mad at UWP apps? : r/windows
Many win32 apps just don't work well with HiDPI displays, so UWP apps ... you could name than the old native calculator did,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found