Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access denied on Device.Open() #15

Open
boskoKlemenc opened this issue Jun 17, 2021 · 0 comments
Open

Access denied on Device.Open() #15

boskoKlemenc opened this issue Jun 17, 2021 · 0 comments

Comments

@boskoKlemenc
Copy link

boskoKlemenc commented Jun 17, 2021

Hi,
I use Blazor wasm project and after I choose device in Chrome, I get:

My call:

var requestedDevices = await _usb.RequestDevice(); bool opened = requestedDevices.Opened; Console.WriteLine("Conbox opened state: " + opened); await requestedDevices.Open();

Response:
blazor.webassembly.js:1 crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100] Unhandled exception rendering component: Access denied. undefined Microsoft.JSInterop.JSException: Access denied. undefined at System.Threading.Tasks.ValueTask1[TResult].get_Result () <0x306d990 + 0x00034> in :0
at Blazor.Extensions.WebUSB.USBDeviceMethods.Open (Blazor.Extensions.WebUSB.USBDevice device) [0x0003c] in /home/runner/work/WebUSB/WebUSB/src/Blazor.Extensions.WebUSB/USBDevice.Methods.cs:25 `

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant