none
Server SDK SIPSNOOP build problem

    Question

  •  

    Hi,

    Has anyone succeeded in compiling the SipSnoop example from SDK? Whenever I try to build it using Compile.bat I get the following errors:

     

     

    C:\Program Files\Microsoft Office Communications Server 2007\SDK\Samples>compile SipSnoop

     Building SipSnoop...

    Microsoft (R) Visual C# 2005 Compiler version 8.00.50727.42
    for Microsoft (R) Windows (R) 2005 Framework version 2.0.50727
    Copyright (C) Microsoft Corporation 2001-2005. All rights reserved.

    SipSnoop.cs(954,52): error CS0039: Cannot convert type 'System.EventArgs' to
            'Microsoft.Rtc.Sip.RequestReceivedEventArgs' via a built-in conversion
    SipSnoop.cs(967,58): error CS0039: Cannot convert type 'System.EventArgs' to
            'Microsoft.Rtc.Sip.ResponseReceivedEventArgs' via a built-in conversion
    SessionManager.cs(412,13): error CS1594: Delegate
            'Microsoft.Rtc.Sip.SDK.Samples.SIPSnoop.SessionManager.StateChangeListen
            er' has some invalid arguments
    SessionManager.cs(412,40): error CS1503: Argument '1': cannot convert from
            'Microsoft.Rtc.Sip.RequestReceivedEventArgs' to 'System.EventArgs'
    SessionManager.cs(484,13): error CS1594: Delegate
            'Microsoft.Rtc.Sip.SDK.Samples.SIPSnoop.SessionManager.StateChangeListen
            er' has some invalid arguments
    SessionManager.cs(484,40): error CS1503: Argument '1': cannot convert from
            'Microsoft.Rtc.Sip.ResponseReceivedEventArgs' to 'System.EventArgs'

    *** Build failed ***

    Done.

    Monday, October 29, 2007 12:55 PM

All replies

  • Hi,

    I have the same problem.

     

    Do you find the solution?

     

     

    Regards,

    Giuseppe

    Friday, January 18, 2008 5:18 PM
  • Everyone should have this problem... but the solution should be fairly easy to figure out... that said, I will provide the solution (re: karma):

     

    // SessionManager.cs

    // Around line 92

    // Change from:

    // public delegate void StateChangeListener(EventArgs args);

    // Change to:

     

    public delegate void StateChangeListener(System.Object args);

     

    // SipSnoop.ca

    // Around line 946

    // Change from:

    // protected virtual void StateChangeListener(EventArgs args)

    // Change to:

     

    protected virtual void StateChangeListener(System.Object args)

     

    - - - - - - - - - -

    With regards, Christopher

    Saturday, January 19, 2008 6:36 AM