Server Error in /WebApp Applcation

Tech-Archive recommends: Fix windows errors by optimizing your registry



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.
>
>


.



Relevant Pages

  • Re: Why Thread-Safe VB6 ActiveX when it is single threaded?
    ... Is it possible for a thread to terminate before the sink is torn ... > VB ActiveX control is OCX true control. ... > registered in global interface table in step 2.* above. ... > an exception. ...
    (microsoft.public.win32.programmer.ole)
  • RE: AxInterop assembly works; Interop assembly doesnt???
    ... I think you'd better check the HResult in the COM Exception, ... To get more detail info about this error, ... I'm not clear why you need to create the ActiveX control using ... before sending mail. ...
    (microsoft.public.dotnet.framework.interop)
  • Re: .Net-BroacastEventWindow.1.0.5000.0.2 Error
    ... The problem is definitely related to the ActiveX control. ... Unfortunately the vendor only supports the control in VB6 applications ... Would it be possible to handle this exception if we were to create a VC++ stub app that started up the .Net managed code and then ...
    (microsoft.public.dotnet.framework.interop)
  • RE: .Net-BroacastEventWindow.1.0.5000.0.2 Error
    ... Will you meet this problem if you remove the ActiveX control in your .NET ... Since this AV exception was thrown out after the Main method has exited, ... the AppDomain might have have been destroyed at that time. ... before sending mail. ...
    (microsoft.public.dotnet.framework.interop)