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.

[Question] How to setup RestrictedSample. I can do sample code on same solution, but not on new project.

See original GitHub issue

Describe A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Copy RestrictedSamples’s widget to WidgetAdvSampleCS’s widget1 and widget2… a. Update NETCore.UniversalWindowsPlatform nuget to 1 more version. WidgetAdvSampleCS is one version behind b. Copy Extensions\DispatcherTaskExtensions c. Copy widget1 class entirely

Expected behavior

  1. The file picker should not crashed…
  2. If Debug it is
 System.UnauthorizedAccessException
  HResult=0x80070005
  Message=Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
  Source=<Cannot evaluate the exception source>
  StackTrace:
<Cannot evaluate the exception stack trace>

Additional context I am no sure, I feeling kinda stupid to even merge two sample. Any other config/setting or nuget update need to be done? The project’s solution Link

Probably I doing wrong with these? But I haven click the widget 1’s file picker and never clean it, before clicking widget2’s file picker // Also, at this time you should let the XboxGameBarForegroundWorker object fall out of scope, as it is only allowed to be used once

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
totallymonkeycommented, Oct 7, 2020

@edwardchanjw We added a reg key you can set to enable calling the restricted API from any widget for testing/development purposes.

Please try adding the following key to this location: Software\Microsoft\GameBar DevFeatures (Set to 1)

1reaction
vidagercommented, Jan 22, 2021

Closing since there hasn’t been activity since Oct 7 and it appears totallymonkey gave a workaround for development. If you have need to ship a widget with a Restricted API, you can reach out to us to add your widget to the allow list.

Thanks! Ben

Read more comments on GitHub >

github_iconTop Results From Across the Web

c# - How to tie up multiple projects from same solution (not ...
The simple way to resolve this issue is using project references in Visual Studio. Even if you don`t have Visual Studio installed in...
Read more >
Hot to create a Solution with multiple projects in vs code?? ...
of a tutorial that cover how to make a multi project solution in visual studio code, with debugging and test. all in one...
Read more >
Create projects & solutions - Visual Studio (Windows)
Learn how to create and use Visual Studio solutions and projects to store artifacts.
Read more >
Add Projects To Solution and Output path fails #1580
I've created a template with multiple projects and was trying to create ... This has more to do with the output base path...
Read more >
Abstract
With these in hand, a hypothesis test is performed for each candidate genome that answers the question: Does the sample contain enough of...
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