Server Error in /WebApp Applcation
- From: "CSharpNewBie" <CSharpNewBie@xxxxxxxxxx>
- Date: Wed, 28 Sep 2005 15:05:52 -0400
Ok. I was able to get the ActiveX control to be created but now here's the
error message
Also the first Event works but not the second which has the EventSink
Server Error in '/WebApp' Application.
--------------------------------------------------------------------------------
Exception from HRESULT: 0x80040202.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details: System.Runtime.InteropServices.COMException: Exception
from HRESULT: 0x80040202.
Source Error:
Line 36: this.asta.HostPort = 9000;
Line 37: this.asta.OnConnect +=new
IcaAlertReceiverXEvents_OnConnectEventHandler(asta_OnConnect);
Line 38: this.asta.OnEvent +=new
IcaAlertReceiverXEvents_OnEventEventHandler(asta_OnEvent);
Line 39: this.asta.OpenConnection();
Line 40: // Put user code to initialize the page here
Source File: c:\inetpub\wwwroot\webapp\webform.aspx.cs Line: 38
Stack Trace:
[COMException (0x80040202): Exception from HRESULT: 0x80040202.]
System.Runtime.InteropServices.UCOMIConnectionPoint.Advise(Object
pUnkSink, Int32& pdwCookie) +0
caAlertObject.IcaAlertReceiverXEvents_EventProvider.add_OnEvent(IcaAlertReceiverXEvents_OnEventEventHandler
)
caAlertObject.caAlertReceiverXClass.add_OnEvent(IcaAlertReceiverXEvents_OnEventEventHandler
) +0
WebApp.WebForm1.Page_Load(Object sender, EventArgs e) in
c:\inetpub\wwwroot\webapp\webform.aspx.cs:38
System.Web.UI.Control.OnLoad(EventArgs e)
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Page.ProcessRequestMain()
Any help is appreciated.
Thanks
"CSharpNewBie" <CSharpNewBie@xxxxxxxxxx> wrote in message
news:%236$6b9FxFHA.3280@xxxxxxxxxxxxxxxxxxxxxxx
> Hi
>
> I have a ActiveX control (TcpSocket Client) which has 3 Events
> OnConnect/OnDisconnect and OnEvent.
> my question is
> how do I embed this non-visual control on a aspx webpage and create a
> OnEvent Handler which receives data from a Tcp Server and add that to
> dataset to be displayed on DataGrid.
>
> This works fine a on Windows Application.
>
> Thanks in Advance.
>
>
.
- References:
- ActiveX Control on ASP.NET Page
- From: CSharpNewBie
- ActiveX Control on ASP.NET Page
- Prev by Date: ActiveX Control on ASP.NET Page
- Next by Date: Re: loading multiple drop down boxes?
- Previous by thread: ActiveX Control on ASP.NET Page
- Next by thread: Re: loading multiple drop down boxes?
- Index(es):
Relevant Pages
|