ASP.NET 2.0 and COM Port Communication

Posted by theaviator on Stack Overflow See other posts from Stack Overflow or by theaviator
Published on 2010-02-20T17:19:47Z Indexed on 2010/05/05 1:08 UTC
Read the original article Hit count: 354

Filed under:
|
|

ASP.NET 2.0 and COM Port Communication

Hello Guys,

I have a managed DLL which communicates with the devices attached on COM/Serial ports. The desktop Winforms application sends requests on ports and receives/stores data in memory. In Winforms app I have added a reference to DLL and I am using the methods. This works well. Now, there is a situation where I need to show this data from serial/com port on a web-page. And also users should be able to send requests to the ports using this DLL.

I have made a web app in ASP.NET (2.0). Added a reference to the DLL. I am able to use this DLL, the DLL communicates on the COM upon button click on web-page and also the response is shown on web page.

However I am not happy with the approach and strongly feel that this is a bad approach. Also the development server crashes after 3 -4 requests.

What is the best approach in this scenario. If I use a windows service then how would my ASP.net app will communicate with the Weindows service.

Or can this be easily done using WCF. I have not used WCF any time nor any of .net remoting technique.

Please suggest me the best architecture in this scenario.

Thank you

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about com