Com Port Problem , Modem ,Asp.Net ,Real IP Address.
-
Hello Fred's I have Deploy Web Application on a Server.Server has a Static IP Address. This Application Developed in Asp.Net Which use Modem For SMS Sending. modem Install On Com Port5 if i am run application from server then It's ok But as Soon as i run application from other machine Com Port Disable Automatic. In event Viewer Following Warning Message Thrown. When i first time Deploy and Check From other Machine then It's Work Fine But after Sometime Same Machine Has same Problem. Error Says that "Access Denied for Com Port 5" and After That Modem Port Disable permanently After Restart Machine Com Port Enable Again automatic. There may be Security Problem.How I can Solved this Problem. In event Viewer Following Event Fire. Event Type: Warning Event Source: ASP.NET 2.0.50727.0 Event Category: Web Event Event ID: 1309 Date: 4/10/2009 Time: 11:19:51 PM User: N/A Computer: KETAN-1CCDAA7E5 Description: Event code: 3005 Event message: An unhandled exception has occurred. Event time: 4/10/2009 11:19:51 PM Event time (UTC): 4/10/2009 5:49:51 PM Event ID: 6e414ffa5de6479fb1fff241887ed1f7 Event sequence: 8 Event occurrence: 1 Event detail code: 0 Application information: Application domain: /LM/w3svc/1/ROOT/H1-2-128838592248125000 Trust level: Full Application Virtual Path: /H1 Application Path: d:\inetpub\wwwroot\H1\ Machine name: KETAN-1CCDAA7E5 Process information: Process ID: 1864 Process name: aspnet_wp.exe Account name: KETAN-1CCDAA7E5\ASPNET Exception information: Exception type: CommException Exception message: Unable to open port COM4: Unable to open COM4 Access is denied Request information: Request URL: http://116.74.118.18/h1/Default.aspx Request path: /h1/Default.aspx User host address: 117.198.182.42 User: Is authenticated: False Authentication Type: Thread account name: KETAN-1CCDAA7E5\ASPNET Thread information: Thread ID: 1 Thread account name: KETAN-1CCDAA7E5\ASPNET Is impersonating: False Stack trace: at GsmComm.GsmCommunication.GsmPhone.Open() at GsmComm.GsmCommunication.GsmCommMain.Open() at _Default.Button1_Click(Object sender, EventArgs e) at System.Web.UI.WebControls.Button.OnClick(EventArgs e) at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String
-
Hello Fred's I have Deploy Web Application on a Server.Server has a Static IP Address. This Application Developed in Asp.Net Which use Modem For SMS Sending. modem Install On Com Port5 if i am run application from server then It's ok But as Soon as i run application from other machine Com Port Disable Automatic. In event Viewer Following Warning Message Thrown. When i first time Deploy and Check From other Machine then It's Work Fine But after Sometime Same Machine Has same Problem. Error Says that "Access Denied for Com Port 5" and After That Modem Port Disable permanently After Restart Machine Com Port Enable Again automatic. There may be Security Problem.How I can Solved this Problem. In event Viewer Following Event Fire. Event Type: Warning Event Source: ASP.NET 2.0.50727.0 Event Category: Web Event Event ID: 1309 Date: 4/10/2009 Time: 11:19:51 PM User: N/A Computer: KETAN-1CCDAA7E5 Description: Event code: 3005 Event message: An unhandled exception has occurred. Event time: 4/10/2009 11:19:51 PM Event time (UTC): 4/10/2009 5:49:51 PM Event ID: 6e414ffa5de6479fb1fff241887ed1f7 Event sequence: 8 Event occurrence: 1 Event detail code: 0 Application information: Application domain: /LM/w3svc/1/ROOT/H1-2-128838592248125000 Trust level: Full Application Virtual Path: /H1 Application Path: d:\inetpub\wwwroot\H1\ Machine name: KETAN-1CCDAA7E5 Process information: Process ID: 1864 Process name: aspnet_wp.exe Account name: KETAN-1CCDAA7E5\ASPNET Exception information: Exception type: CommException Exception message: Unable to open port COM4: Unable to open COM4 Access is denied Request information: Request URL: http://116.74.118.18/h1/Default.aspx Request path: /h1/Default.aspx User host address: 117.198.182.42 User: Is authenticated: False Authentication Type: Thread account name: KETAN-1CCDAA7E5\ASPNET Thread information: Thread ID: 1 Thread account name: KETAN-1CCDAA7E5\ASPNET Is impersonating: False Stack trace: at GsmComm.GsmCommunication.GsmPhone.Open() at GsmComm.GsmCommunication.GsmCommMain.Open() at _Default.Button1_Click(Object sender, EventArgs e) at System.Web.UI.WebControls.Button.OnClick(EventArgs e) at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String
It looks like a hardware problem, are you sure that hard ware is correct?
be a part of the solution, rather then problem
-
It looks like a hardware problem, are you sure that hard ware is correct?
be a part of the solution, rather then problem
Yes Hardware Is ok. Even i am run application using real ip address from my pC.it's Work fine But If Some One Access Application From Remote PC.The Port Number disable Permanently. Now if i Restart my Machine All Works Fine Again. So i not think this Hardware Problem they may be security problem but not exact know. Thanks for answer.