nanoframework / Home

:house: The landing page for .NET nanoFramework repositories.
https://www.nanoframework.net
MIT License
844 stars 75 forks source link

nanoCLR `virtualserial` commands do not work #1504

Closed CoryCharlton closed 2 weeks ago

CoryCharlton commented 3 weeks ago

Tool

Virtual nanoCLR

Description

When executing nanoclr virtualserial create I receive the following error:

Retrieving the COM class factory for component with CLSID {9E170FF2-8671-462F-BE45-CE80E1D0228B} failed due to the following error: 80040154 Class not registered (0x80040154 (REGDB_E_CLASSNOTREG)).

How to reproduce

No response

Expected behaviour

No response

Screenshots

No response

Aditional context

No response

CoryCharlton commented 3 weeks ago

The Virtual Serial Port Tools are installed correctly. I'm going to try and manually setup the virtual serial port to confirm that is functioning correctly.

image

CoryCharlton commented 3 weeks ago

Updating the version of the virtual port interop library resolved the first issue but something is still failing when creating the bridge...

CoryCharlton commented 3 weeks ago

Works fine when run as administrator but "fails" (with exit code 0) (sometimes?) when UAC elevation occurs. Unfortunately I can't diagnose the elevation further because the output can't be redirected.

Will send over a PR for the initial problem and go from there...

CoryCharlton commented 2 weeks ago

The new interop library and license included in https://github.com/nanoframework/nf-interpreter/pull/2965 fix the functionality in the nanoclr tool.

Once a new version is published I'll confirm everything works as expected in the VS extension.

CoryCharlton commented 2 weeks ago

Following up that I am able to use the virtual device from the Visual Studio extension after updating to the latest nanoclr.