locked
CS1501: No overload for method 'GetServerInfo' takes '1' arguments RRS feed

  • Question

  •  

    Hello,


    VS 2005

    I have just started learning sync services.

    I have followed this article: http://www.codeproject.com/smartclient/takedataoffline.asp


    However, keep getting that error message when I try to add the web reference or browse to the location http://localhost/SyncWebService/Service.asmx

    It highlights this line of code:

    Line 278: public SyncServerInfo GetServerInfo(SyncSession session)
    Line 279: {
    Line 280: return _serverProvider.GetServerInfo(session);
    Line 281: }
    Line 282:


    The steps in the readMe file I was following was this. So I think maybe I am doing something wrong with step 5.

    5- Edit the Reference.cs manually and add namespace Microsoft.Synchronization.Data
    Also remove code for types that are already defined Microsoft.Synchronization.Data.dll
    as the sample reference file in this project shows

    Can somone explain further about step 5 above.

    Thanks very much for any help with this.

    Steve

    • Moved by Max Wang_1983 Friday, April 22, 2011 9:59 PM forum consolidation (From:SyncFx - Microsoft Sync Framework Database Providers [ReadOnly])
    Thursday, October 11, 2007 8:44 AM

All replies

  • Hi Steve,

     

    You need to regenerate the reference file again. The new generated file should have the correct method signature.

     

    Thanks

    Thursday, October 25, 2007 9:22 PM