duduyoyo / WebSocket4OPC

Liberate and access plant data anywhere, any way!
MIT License
38 stars 6 forks source link

I can't launch the application according to the instructions #8

Closed DanilaX1 closed 9 months ago

DanilaX1 commented 9 months ago

Good afternoon, Please give me a hint where to follow to get your software working To test your software, I got a separate machine with Windows 10. I installed the OPC server there and then followed your instructions. BUT unfortunately there is no answer in the browser. Please tell me how to find the error or restart your software webfor opc

DanilaX1 commented 9 months ago

I examined the log and tried to find errr1 several errors. maybe it has something to do with it errr2

duduyoyo commented 9 months ago

From your last image it seems using DCOM, which isn't related to my app at all. Do you have more than one OPC servers running in the same box? My app assumes only one OPC server in one box only and install my app with it.

duduyoyo commented 9 months ago

Also from your http error 401, which is Unauthorized, please check account privilege and make sure it has admin privilege to run appPool.

DanilaX1 commented 9 months ago

Only 1 OPC server is installed. I tried to give even more privileges to the user, although this user already had administrator rights. After reinstalling the service, the process ends unexpectedly. Tell me what else can I check? errr13

duduyoyo commented 9 months ago

Has it worked before? Any other anti-virus/anti-malware besides MS ones installed? Do you have OpcEnum.exe running as Windows service in the same box?

DanilaX1 commented 9 months ago

Has it worked before? No, I just started trying to configure the system Any other anti-virus/anti-malware besides MS ones installed? No, only the standard MS defender. Maybe it needs to be disabled Do you have OpcEnum.exe running as Windows service in the same box? no, I have not seen such an application, does this component need to be additionally installed?

DanilaX1 commented 9 months ago

Disabling MS Defender did not help.

DanilaX1 commented 9 months ago

I'm currently using https://github.com/ya-mouse/openopc this solution does not require OpcEnum.exe How to add the OpcEnum.exe service?

duduyoyo commented 9 months ago

This OpcEnum.exe is from OPC Foundation, which is used to find each vendor's' OPC server. We need a mechanism to know which vendor's ClsId is so we can use it in application - that is the role OpcEnum.exe plays. Without it no OPC server can work properly. You can copy this exe from another box and add it as a Windows service. Without it my app can't work. OpenOPC doesn't provide it either, usually it comes from vendor's OPC server installation. Once you have it you can use MS sc.exe in command line to add it. You need that definitely!

DanilaX1 commented 9 months ago

Good afternoon friend, I haven't lost hope of launching your application. But so far no results. I installed OPC Core Components Redistributable. so I can start the EnumOPC service. но AppPoolID OPCPool but OPCPool keeps crashing with ExitCode fffffffe. where else should I look to get your application to work?

duduyoyo commented 9 months ago

Can you post screenshots on event viewer by sorting source column when you just launch it? There should be a source for OPC native module. Meanwhile in your browser by pressing F12 entering into debug and checking network, see if there is any message available.

duduyoyo commented 9 months ago

Check your IIS C:\inetpub\wwwroot\OPC folder, make sure it matches http://localhost/OPC/websocket.html. Or you can browse websocket.html from IIS Internet manager and launch it from there.

DanilaX1 commented 9 months ago

1 2 3 4 5 6 7

DanilaX1 commented 9 months ago

I found several errors in the event viewer, maybe they are somehow related to my problem. The address http://localhost/OPC/websocket.html also does not work. But if you open file:///C:/inetpub/wwwroot/OPC/websocket.html after a few seconds the DISCONNECTED message appears

duduyoyo commented 9 months ago

Check your OpcPool and see if you can start it. If not, it is an authority issue for the account you are using. Meanwhile check your setting as below, see if they are the same. image image image

duduyoyo commented 9 months ago

Make sure OpcEnum.exe is running, image

duduyoyo commented 9 months ago

You installed OpcEnum.exe after OPC server, so categoryID under OpcEnum might not have OPC server ClsId associated. In this case you need re-register or reinstall OPC server so its ClsId will be correctly listed under categoryID of OpcEnum.

DanilaX1 commented 9 months ago

Good afternoon, thank you for such high-quality support. I have 2 news, 1 good and 1 bad I installed updates on windows. and reinstalled the IIS service. Now http://localhost/OPC/websocket.html is working and OPCpool starts. but it still doesn't work When I go to the application page the following happens. 1 - Freelance OPC Server (ABB server) Starts automatically. 2 - after about 20 seconds the DISCONNECTED message appears 3 - Freelance OPC Server (ABB server) Closes automatically. I have new messages in the log

DanilaX1 commented 9 months ago

11 22 33 44 55 66 77

duduyoyo commented 9 months ago

Great progress! Log indicates you are using DA/AE, but no HDA - which is totally OK. Can you translate Russian to English for the last error (ReadEntityBody error)?

DanilaX1 commented 9 months ago

Yes you are right. ABB OPC only has DA and AE and does not have HDA. The last message is translated as End of file reached. ReadEntityBody() failed.

duduyoyo commented 9 months ago

Send email to websocket4opc@gmail.com and I want you to have a patch to try since I don't have ABB OPC server to test. Thx!

DanilaX1 commented 9 months ago

I'm sorry, it's my fault. After reinstalling Services, I forgot to check the activation of the Web Socket. Now AE and DA are working as an ABB server. image