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