What steps will reproduce the problem?
1. trying to open com port i get: Request for the permission of
type 'System.Security.Permissions.SecurityPermission, mscorlib,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
2.
3.
What is the expected output? What do you see instead?
it should open com port and connect
What version of the product are you using? On what operating system?
2 on xp
Please provide any additional information below.
Public Class Form1
Dim mm As Modbus.Device.ModbusSerialMaster
Dim port As New System.IO.Ports.SerialPort
Private Sub Search_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Search.Click
Dim tt() As UShort
Dim port As New System.IO.Ports.SerialPort("COM1", 9600,
IO.Ports.Parity.None, 8, IO.Ports.StopBits.One)
port.Open()
mm.CreateRtu(port)
tt = mm.ReadHoldingRegisters(Me.Address.Text, 1, 1)
Me.TextBox1.AppendText(Chr(13) & Chr(10) & tt(0))
port.Close()
End Sub
End Class
Original issue reported on code.google.com by louisvo...@hotmail.com on 2 Nov 2006 at 6:23
Original issue reported on code.google.com by
louisvo...@hotmail.com
on 2 Nov 2006 at 6:23