Skip to content

Access denied on Device.Open() #15

@boskoKlemenc

Description

@boskoKlemenc

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 `

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions