eclipse-aaspe / server

C# based server for AASX packages
Other
72 stars 52 forks source link

I can't connect the package explorer to my localhost server #186

Open Jorgecanetemartin opened 1 year ago

Jorgecanetemartin commented 1 year ago

I created my AASX server(OPC UA and rest) with two AAS and i can succesfully connect to it from URL, but when I try to connect from AASX Package explorer connecting HTTP/REST repository with the URL http://localhost:51310?asp.net or http://localhost:51310 i receive this error: image

I tried to connect by the connect via rest option but i obtain another error: image

Yasuhito-Yoshida-3 commented 1 year ago

Have you checked issue #183? It seems that the port has been changed to 5001. But no matter what I changed it didn't work.

Yasuhito-Yoshida-3 commented 1 year ago

I checked AasxServerBlazor port 5001 is worked. But AasxServerCore did not work.

Jorgecanetemartin commented 1 year ago

I checked AasxServerBlazor port 5001 is worked. But AasxServerCore did not work.

I already changed the ports and i tried to connect with different ports and it happens the same, it is about OPC UA, because when i create a rest server without the --opc it works.

Yasuhito-Yoshida-3 commented 1 year ago

My condition seems to be working well. OPC UA option is successful. aasx-package-explorer.2023-09-12.alpha.zip AasxServerBlazor.2023-09-13.alpha.zip serverstart.bat "AasxServerBlazor.exe --opc --rest --no-security --data-path aasxs"

PackageExplorer boot. image image "Conenet via REST" connected successfully. Diaglog button press "OK" step by step. Dialog message "/server/getaasx2/0" is appeared. it was OK.

Other connect "Connect HTTP/REST repository" image image

Red line square part is appeared. image

Jorgecanetemartin commented 1 year ago

I have just downloaded the two versions for starting from zero, i repeat your steps but i get this error and i can't connect to the server image image

juileetikekar commented 1 year ago

Hi @Jorgecanetemartin,

Are you looking for OPC UA client or Server in AASX Server?

Jorgecanetemartin commented 1 year ago

Hello, i want to create a server which contains one or more aasx files and access it from Ua Expert.

aorzelskiGH commented 1 year ago

Maybe you need to switch security off: --no-security

Please also look into the beginning of the updated readme.

I am not sure if V3 server already works again with OPC UA.

EmilAlipiev commented 1 year ago

how do you exactly run the blazor App? i get an exception at ParseSecurityMetamodel function after cloning and trying to run it. is there any specific set up needed before?

aorzelskiGH commented 1 year ago

Please take a look into the beginning of the README.MD: https://github.com/admin-shell-io/aasx-server Especially "--no-security"

EmilAlipiev commented 1 year ago

@aorzelskiGH but this is for the already compiled dlls right? how to achieve it for locally debugging using VS ? should i comment out some code? and X509Store does this work only under windows? is it possible to achieve running also on Mac?

juileetikekar commented 1 year ago

Hi @EmilAlipiev ,

if the problem still persists, could you please share the exception at ParseSecurityMetamodel that you mentioned before?

aorzelskiGH commented 1 year ago

Vielleicht solltest Du ein Meeting mit ihm machen. Scheinen ja eine Vielzahl von Fragen zu sein.

Von: juileetikekar @.> Gesendet: Montag, 30. Oktober 2023 12:36 An: admin-shell-io/aasx-server @.> Cc: Andreas Orzelski @.>; Mention @.> Betreff: Re: [admin-shell-io/aasx-server] I can't connect the package explorer to my localhost server (Issue #186)

External email! Do not click links or open attachments unless you recognize the sender and know the content is safe.

Hi @EmilAlipievhttps://github.com/EmilAlipiev ,

if the problem still persists, could you please share the exception at ParseSecurityMetamodel that you mentioned before?

- Reply to this email directly, view it on GitHubhttps://github.com/admin-shell-io/aasx-server/issues/186#issuecomment-1785001532, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ALVQLACNFOTB25OQVPUPARLYB6GILAVCNFSM6AAAAAA5PJEHJWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBVGAYDCNJTGI. You are receiving this because you were mentioned.Message ID: @.***>

.................................................................. Phoenix Contact GmbH & Co. KG

Sitz der Gesellschaft / registered office of the company: 32825 Blomberg Amtsgericht Lemgo HRA 3746 / district court Lemgo HRA 3746 USt-Id-Nr.: DE124613250

Pers. haftende Gesellschafterin / personally liable partner: Phoenix Contact Verwaltungs-GmbH Verwaltungssitz Blomberg / Management office Blomberg: Amtsgericht Lemgo HRB 10904 / district court Lemgo HRB 10904 Satzungssitz Vaduz/Liechtenstein HR Nr. FL-0002.700.066-3 / Statutory seat Vaduz/Liechtenstein Comm. reg. FL-0002.700.066-3 Geschäftsführer / Executive Board: Frank Stührenberg (Vorsitzender / Chief Executive Officer), Dirk Görlitzer, Torsten Janwlecke, Ulrich Leidecker, Frank Possel-Dölken, Axel Wachholz Vorsitzender des Beirates / Chairman of the Advisory Board: Dr. Dipl.-Ing. Eberhard Veit


Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren, jegliche anderweitige Verwendung sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.

This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure, distribution or other use of the material or parts thereof is strictly forbidden.


EmilAlipiev commented 1 year ago

Hi @juileetikekar,

I get the following exception that Program.env is always returned null. Not sure what to set up here? if you will have time, we can also have a short call. thanks for you help.

image
EmilAlipiev commented 1 year ago

@juileetikekar @aorzelskiGH just a quick update. I have solved my problem. indeed on windows VS there are 2 options to run blazor UI and IIS-express was the selected one, i was trying to run with IIS express and in the UI launch settings as shown below, IIS-express doesnt include, no-security option. When choosing the other one, it works fine. But on Mac, IIS-express is not exist, so there is the another issue using <StoreType>X509Store</StoreType>. That wont work I believe. So should we only use "Mono" option on Mac and Linux with <StoreType>Directory</StoreType>

image
aorzelskiGH commented 1 year ago

I have just checked it in the code.

X509Store is only used by the OPC UA sample client in case of ApplicationCertificate. But in the code only username and password is used and supported. During runtime it will not be used.
EmilAlipiev commented 1 year ago

I come back to this issue because it only works for me on the windows machine. I am trying to start BlazorServer Ui but this certificate error is throwing. it starts as aasx-server/src/AasxServerBlazor/bin/Debug/net6.0/AasxServerBlazor.dll --no-security --aasx-in-memory 1000 --data-path "C:\Development\Safety3" --edit --external-blazor http://localhost:5001

image

What should we do run the source code on mac or linux?