

ActiveXperts Serial Port Component features the following: It can even be another PC, connected via a NULL modem cable. In my project I had the need to implement serial port communication for a RFID reader. Serial Communication with the.NET Framework in. The System.IO.Ports.SerialPort class which ships with.NET is a glaring exception. NET Framework provide a rapid application development that is ideal for early development that needs to track changing requirements as hardware designs evolve.

Such a device can be: a weight indicator, a modem, a scanner, or any other device that is equiped with a serial port. » » » Using ActiveXperts Serial Port Component with ASP.NET (C#) ActiveXperts Serial Port Component is a software development kit (SDK) that enables the user to communicate to a device over a serial interface. Develop a command-line serial port program first, then a simple ASP.NET web application that doesn't use the serial port), then combine them after you're strong in both areas. I suggest you hone your skills in these areas separately (i.e. I get the idea you're not familiar with either ASP.NET or IO port programming. The.Close method is equivalent to calling.Dispose, which defeats the point of having your SerialPort as a static member (as its lifetime ends). Using Page_Load is incredibly inappropriate, not to mention terribly un-thread-safe.

If you need reliability you should perform SerialPort communication in a dedicated Windows Service process which communicates with your ASP.NET application via some form of IPC. ASP.NET is designed to be stateless (because of its HTTP basis).ĪSP.NET host processes (w3wp.exe) can be terminated and recycled at will, without warning. I suggest re-architecturing your program. Serial Port Communication Asp Net Average ratng: 3,5/5 9063votes
