COM port cannot be opened in asp.net

Posted by Pandiya Chendur on Stack Overflow See other posts from Stack Overflow or by Pandiya Chendur
Published on 2010-05-10T07:12:15Z Indexed on 2010/05/10 7:14 UTC
Read the original article Hit count: 488

Filed under:
|
|
|
|

I following this article for sending SMS it is a winform application.. I have referenced all the Dll's to my asp.net application.....

I use an aspx page to detect a mobile device connected to a PC..... But it alwys shows COM 'n' Port could not be opened.....

using SMS;
using GsmComm.GsmCommunication;
using GsmComm.PduConverter;

public partial class _Default : System.Web.UI.Page 
{
    protected void Page_Load(object sender, EventArgs e)
    {
        GsmCommMain comm = new GsmCommMain(6, 9600, 300);
        comm.Open();
        if (!comm.IsConnected())
        {
            Response.Write("No Phone Connected");
        }
        else
        {
            SmsSubmitPdu pdu = new SmsSubmitPdu("test", "+919999999999", "");
            CommSetting.comm.SendMessage(pdu);
        }
    }
}

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about c#