agracio / edge-js

Run .NET and Node.js code in-process on Windows, macOS, and Linux

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Edge-js + Edge-vb (ENV EDGE_USE_CORECLR=1) error: The given assembly name or codebase was invalid. (0x80131047)

piropiro2018 opened this issue · comments

Hello,everyone.

When Run Example "Hello World" is performed under the following conditions

The given assembly name or codebase was invalid. (0x80131047)
occurs and ends abnormally.

Is there a way to solve this?

Thank in adv.

OS=bullseye-slim
ARCH=amd64
NODE_VERSION=14

Run Example "Hello World" code:
var edge=('edge-js'); var WriteCrapVB = edge.func('vb', function () {/* Async Function(Input As Object) As Task(Of Object) Return Await Task.Run(Function() Return "NodeJS Welcomes: " & Input.ToString() End Function) End Function */}); WriteCrapVB('VB', function (error, result) { if (error) throw error; console.log(result); // Returns "NodeJS Welcomes: VB" });
Error: The given assembly name or codebase was invalid. (0x80131047)
at Object.exports.func (/usr/src/node-red/node_modules/edge-js/lib/edge.js:177:17)
at Object. (/usr/src/node-red/hellovb.js:2:24)
at Module._compile (internal/modules/cjs/loader.js:1085:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
at Module.load (internal/modules/cjs/loader.js:950:32)
at Function.Module._load (internal/modules/cjs/loader.js:790:12)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:75:12)
at internal/main/run_main_module.js:17:47 {
Message: 'The given assembly name or codebase was invalid. (0x80131047)',