How to investigate "Unable to create object the system cannot find the file specified" error on deployment machine

StackOverflow https://stackoverflow.com/questions/21424768

  •  04-10-2022
  •  | 
  •  

Question

I have a c++ project (acrobat pdf plugin) that uses a com visable c# dll. On my pc everything is working perfectly but on my deployment server I get the error "Unable to create object". I have registered the dll on the deployment machine using regasm and created the .tlb file on the same location of the dll. I used comxplorer and I compared the clsid of the components between my machine and the deployment machine, and they match.

this com dll does use other dlls (it's a pretty big project)

Can late binding or something like that help me? How can I begin to investigating this issue?

Please advise

Was it helpful?

Solution

When I register the com dll I need to add /codebase e.g.

...\regasm.exe "c:\foo.dll" /codebase
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top