Problems with Com+ Events 
Author Message
 Problems with Com+ Events

i wrote a component that genererates an event when recibes a string from a
socket connection,
The component is implemented in a com+ server environment, runing on a
server side process.
It has several methods properties, and one event.

Everything works fine but the event, i cant bind it to a client. i'm using
this command to bind it,

This is from the client appication

    ListenDeamon = New xServerListener.Listener
    AddHandler ListenDeamon.Message, AddressOf LIstenDeamon_onMessage"

but when i run it an exception is generated:
"An unhandled exception of type 'System.IO.FileNotFoundException' occurred
in system.enterpriseservices.dll
Additional information: File or assembly name xServerListener, or one of its
dependencies, was not found."

This is from the Component  appication

<Assembly: ApplicationName("xServer")>
<Assembly: ApplicationActivation(ActivationOption.Server)>
<Assembly: AssemblyKeyFile("xServerListener.snk")>

<GuidAttribute("A738EE54-BD2A-43f1-946A-65CB076D8303"), _
InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIDispatch)> _
Public Interface IListener
    Sub Message(ByVal MsgString As String)
End Interface

Public Delegate Sub MessageEventHandler(ByVal MsgString As String)

<ComSourceInterfaces("xServerListener.IListener, xServerListener"), _
ConstructionEnabled([Default]:="Default Construction String")> _
    Public Class Listener
            Inherits ServicedComponent
            Private Const kSlotListenerName As String = "Listener"

            Public Event Message As MessageEventHandler

            Protected Overridable Sub onMessage(ByVal Msg As String)
                RaiseEvent Message(Msg)
            End Sub

               ......
    End Class

--

 Diego Sznajderhaus
Qualityfour Technologies



Tue, 05 Oct 2004 21:08:01 GMT  
 Problems with Com+ Events
Did you run the GAcUtil.exe to install the component? This is essential for
Server type packages
Mike <CP

Quote:
> i wrote a component that genererates an event when recibes a string from a
> socket connection,
> The component is implemented in a com+ server environment, runing on a
> server side process.
> It has several methods properties, and one event.

> Everything works fine but the event, i cant bind it to a client. i'm using
> this command to bind it,

> This is from the client appication

>     ListenDeamon = New xServerListener.Listener
>     AddHandler ListenDeamon.Message, AddressOf LIstenDeamon_onMessage"

> but when i run it an exception is generated:
> "An unhandled exception of type 'System.IO.FileNotFoundException' occurred
> in system.enterpriseservices.dll
> Additional information: File or assembly name xServerListener, or one of
its
> dependencies, was not found."

> This is from the Component  appication

> <Assembly: ApplicationName("xServer")>
> <Assembly: ApplicationActivation(ActivationOption.Server)>
> <Assembly: AssemblyKeyFile("xServerListener.snk")>

> <GuidAttribute("A738EE54-BD2A-43f1-946A-65CB076D8303"), _
> InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIDispatch)> _
> Public Interface IListener
>     Sub Message(ByVal MsgString As String)
> End Interface

> Public Delegate Sub MessageEventHandler(ByVal MsgString As String)

> <ComSourceInterfaces("xServerListener.IListener, xServerListener"), _
> ConstructionEnabled([Default]:="Default Construction String")> _
>     Public Class Listener
>             Inherits ServicedComponent
>             Private Const kSlotListenerName As String = "Listener"

>             Public Event Message As MessageEventHandler

>             Protected Overridable Sub onMessage(ByVal Msg As String)
>                 RaiseEvent Message(Msg)
>             End Sub

>                ......
>     End Class

> --

>  Diego Sznajderhaus
> Qualityfour Technologies



Thu, 07 Oct 2004 14:59:05 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Com+ Event Run Time Problem

2. COM Events in ASP, ScriptX, VarType problems

3. Problems with callback reference to a COM object - which isn't a source of events

4. Problem with event sourced from ATL COM

5. strange COM event problem

6. ATL COM Component firing events into VBScript event sink

7. Com+ Events

8. Com+ Events or What else

9. LCE(events in cOM+)

10. how to write com+ event

11. Com+ Events(Publisher/Subscriber)

12. Com+ Warnings in Event Log in Win 2000

 

 
Powered by phpBB® Forum Software