Hi there,
I’m brand-new to wisej, so excuse any silly questions!
I’ve built a simple web app. and want to access system port names. Here’s the VB.NET desktop code:
Sub GetSerialPortNames()
‘ Show all available COM ports.
For Each sp As String In My.Computer.Ports.SerialPortNames
ListBox1.Items.Add(sp)
Next
End Sub
However, the web app doesn’t recognise .Ports, so how else do I achieve this?
Thanks
Regards,
Darren
Hi Edmond & thanks for the reply.
Yes, I realise wisej is for web apps & that serial port access is on server only. That’s fine.
Since I posted this question I found that you can retrieve port names from device manager, but it’s odd how my.computer.ports isn’t available.
Cheers,
Darren
WiseJ is for creating Web Based applications. Keep in mind even if you could access the COM ports – they would be com ports on the web server – not your client machine. Your VB code executes on the server itself under IIS.
Please login first to submit.