Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to cast COM object to interface type #689

Open
skandl opened this issue Aug 1, 2019 · 1 comment
Open

Unable to cast COM object to interface type #689

skandl opened this issue Aug 1, 2019 · 1 comment

Comments

@skandl
Copy link

skandl commented Aug 1, 2019

I am trying to use edge.js to make calls within a Node application to invoke methods in a third party COM DLL. I know depending on the way the library was created (example), there are limitations but I am new to working with them.

When I invoke a method in the DLL, I get the below exception. Any ideas if this could be a limitation of Edge, or the library itself, or something else entirely?

Error: Unable to cast COM object of type 'System.__ComObject' to interface type 'Foo.Internal'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{FA3FF6A2-BC84-4709-9301-BC8216845F4E}' failed due to the following error: Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
    at <anonymous>:1:55
    at Object.<anonymous> (C:\Users\stephen.kandl\dev\edge-js-test\edge-test-2\edge-test.js:75:1)
    at Module._compile (module.js:653:30)
    at Object.Module._extensions..js (module.js:664:10)
    at Module.load (module.js:566:32)
    at tryModuleLoad (module.js:506:12)
    at Function.Module._load (module.js:498:3)
    at Function.Module.runMain (module.js:694:10)
    at startup (bootstrap_node.js:204:16)
    at bootstrap_node.js:625:3

(Note I replaced the library interface type above)

@skandl
Copy link
Author

skandl commented Aug 1, 2019

Could be related to #655?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant