Click here to Skip to main content
15,888,300 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to utilize DLLS in node.js using Edge.js. but i have faced an issue that Could not load file or assembly. one of its dependencies. The system cannot find the file specified. please help

this is my sample code which i used for it

this is c# method.
public async Task GetEmployees(object input)
{
return await context.Employees.ToListAsync();
}
var edge = require('edge');

function apiResponseHandler(request, response) {
return function (error, result) {
if (error) {
response.status(500).send({ error: error });
return;
}
response.send(result);
};
}

app.get('/api/employees', function (request, response) {

var getEmployeesProxy = edge.func({
assemblyFile: "TestApp.dll",
typeName: "TestApp.EmployeesOperations",
methodName: "GetEmployees",
references: [
(path + "\\DLLS\\TestApp.dll")
]
});

getEmployeesProxy(null, apiResponseHandler(request, response));
});

please help me

What I have tried:

I'm trying to utilize C# DLLS in node.js using Edge.js module. but i have face issue
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900