Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 774755
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T19:10:57+00:00 2026-05-14T19:10:57+00:00

I following this article for sending SMS it is a winform application.. I have

  • 0

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);
        }
    }
}

EDIT:

I use the web development server that ships with Visual Studio… If go to Control Panel -> Phones & Modems -> Modems i could see my mobile connected in com6…

i have tested the winform application it works fine…

Is this the answer?

ASP.NET pages are supposed to work.
What is happening over here is that
when you click on open_com button, the
ASP.NET page posts back to itself,
executes the event handler i.e., opens
the port. Then when the page finishes
processing the post back, it is
unloaded. At this point the COM1
objects is also destroyed.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T19:10:58+00:00Added an answer on May 14, 2026 at 7:10 pm

    Which webserver are you using? If its the web development server that ships with Visual Studio? Then it should be working. If you want to get it working with IIS you need to use impersonation or run the ASP.net worker process in a different security context with admin privileges.

    Also try to test your sample in a console application first.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have ASP.Net code similar to the following (this is inside a FIELDSET): <ol>
I've been experimenting with ASP.NET MVC and following this tutorial to create the basic
I'm building a Windows service and following this MSDN article , but I'm stuck
Following this example, I can list all elements into a pdf file import pyPdf
So I am following this guide: http://technotes.1000lines.net/?p=23 and I am going through the steps.
Have you managed to get Aptana Studio debugging to work? I tried following this,
Following this question: Good crash reporting library in c# Is there any library like
I've been following this tutorial (lesson 6) in order to build and deploy a
I'm following this tutorial (seems good) for Rails. After I run ruby script/generate scaffold
I see lots of TDD practitioners following this cycle: 1) Write your test as

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.