Retrieving the com class factory for component with clsid .. failed due to the following error 80040154

  • Thread starter Thread starter Tom-1957
  • Start date Start date
T

Tom-1957

Guest
I run my code and get the following:

Retrieving the com class factory for component with clsid .. failed due to the following error 80040154

The error is generated on the following line:

ObjOPCServer = New OPCAutomation.OPCServer

I get this error for debug build but it works fine in release build.

The path is shown below and the files are the same.

C:\VB\w3\w3\obj\Debug\Interop.OPCAutomation.dll
C:\VB\w3\w3\obj\Release\Interop.OPCAutomation.dll

How can I go about figuring out what is wrong?

Thanks for any help.
Tom Ryan

Continue reading...
 
Back
Top