Professional OPC
Development Tools

logos

Online Forums

Technical support is provided through Support Forums below. Anybody can view them; you need to Register/Login to our site (see links in upper right corner) in order to Post questions. You do not have to be a licensed user of our product.

Please read Rules for forum posts before reporting your issue or asking a question. OPC Labs team is actively monitoring the forums, and replies as soon as possible. Various technical information can also be found in our Knowledge Base. For your convenience, we have also assembled a Frequently Asked Questions page.

Do not use the Contact page for technical issues.

PHP COM System cannot found file

More
08 Nov 2018 15:56 #6840 by support
I am glad it helped.

What I have suggested shouldn't normally be needed, but we have met situations in the past where it was necessary. Still not sure what's the root cause, though.

Best regards

Please Log in or Create an account to join the conversation.

More
08 Nov 2018 09:01 #6839 by igr
Thanks. It works now.

Please Log in or Create an account to join the conversation.

More
08 Nov 2018 08:35 #6838 by support
OK, that's weird.

Can you please re-run the Setup program, select the "custom" installation (on the 2nd wizard page), and then, when it makes to the Installation Components page with the tree of component, make sure that

Assemblies (.NET Framework) -> Embedded assemblies

is also checked (this is turned off by default).

It might help
Thank you

Please Log in or Create an account to join the conversation.

More
07 Nov 2018 13:05 - 07 Nov 2018 13:06 #6836 by igr
Im tested it with ReadAndDisplayValue.vbs and get same error. Code: 80070002
Last edit: 07 Nov 2018 13:06 by igr.

Please Log in or Create an account to join the conversation.

More
07 Nov 2018 12:51 #6835 by support
Hello,

in order to rule out that this is not somehow related to PHP only, can you try one of the VBScript examples that come with the product as well? Does it work, or does it give some error - and if so, is it the same error?

Thank you

Please Log in or Create an account to join the conversation.

More
07 Nov 2018 12:32 #6834 by igr
Im Installed under Win10 QuickOPC-2018.2-Full and php-7.2.11-nts-Win32-VC15-x64. Im tested the COM with ReadAndDisplayValue.php example and get on line:

"$Client = new COM("OpcLabs.EasyOpc.DataAccess.EasyDAClient");"

following error:

[07-Nov-2018 12:34:53 Europe/Berlin] PHP Fatal error: Uncaught com_exception: Failed to create COM object `OpcLabs.EasyOpc.DataAccess.EasyDAClient': Das System kann die angegebene Datei nicht finden.
in C:\inetpub\wwwroot\ReadAndDisplayValue.php:10
Stack trace:
#0 C:\inetpub\wwwroot\ReadAndDisplayValue.php(10): com->com('OpcLabs.EasyOpc...')
#1 {main}
thrown in C:\inetpub\wwwroot\ReadAndDisplayValue.php on line 10

The system can not find the stated file.

Please Log in or Create an account to join the conversation.

Moderators: support
Time to create page: 0.053 seconds