none
Missing reference to 'Microsoft.Synchronization.Data.SqlServer.SqlSyncProvider' RRS feed

  • Question

  • I have a build server that somehow I have not installed sync framework references correctly on.  I've installed the 2.1 x86 and 64 sdk's, visual studio 2010 and I'm getting the error below.  The project builds fine on my local dev machine and a second dev machine I often use. 

    What am I missing?

    Error 3 'Microsoft.Synchronization.Data.SqlServer.SqlSyncProvider' does not contain a definition for 'Connection' C:\temp\SyncToyClone\VSSolution\DbSyncUtils\SmoSyncUtils.cs 686 29 DbSyncUtils


    Peter Kellner http://peterkellner.net Microsoft MVP • ASPInsider
    Tuesday, October 19, 2010 10:22 PM

Answers

  • Is your project linking to this assembly?

     

    Program Files\Microsoft SDKs\Microsoft Sync Framework\2.1\Runtime\ADO.NET\V3.1\x86\Microsoft.Synchronization.Data.dll?

     

    This should be the correct one that has the Connection property:

    public virtual

    System.Data.IDbConnection Connection {public get; public set; }

    Member of

    Microsoft.Synchronization.Data.RelationalSyncProvider

    Summary:

    Gets or sets an System.Data.IDbConnection object that is used to connect to the database.

    Return Values:

    An System.Data.IDbConnection object that is used to connect to the database.

    Exceptions:

    Microsoft.Synchronization.Data.DbSyncException

    : value is not valid.

     

    • Marked as answer by Peter Kellner Friday, October 22, 2010 7:54 PM
    Friday, October 22, 2010 7:19 PM
    Moderator

All replies

  • ping...
    Peter Kellner http://peterkellner.net Microsoft MVP • ASPInsider
    Thursday, October 21, 2010 2:12 AM
  • Is your project linking to this assembly?

     

    Program Files\Microsoft SDKs\Microsoft Sync Framework\2.1\Runtime\ADO.NET\V3.1\x86\Microsoft.Synchronization.Data.dll?

     

    This should be the correct one that has the Connection property:

    public virtual

    System.Data.IDbConnection Connection {public get; public set; }

    Member of

    Microsoft.Synchronization.Data.RelationalSyncProvider

    Summary:

    Gets or sets an System.Data.IDbConnection object that is used to connect to the database.

    Return Values:

    An System.Data.IDbConnection object that is used to connect to the database.

    Exceptions:

    Microsoft.Synchronization.Data.DbSyncException

    : value is not valid.

     

    • Marked as answer by Peter Kellner Friday, October 22, 2010 7:54 PM
    Friday, October 22, 2010 7:19 PM
    Moderator
  • Thanks, that was it.  the dependency was in a class library project and I had forgotten to update that.

     


    Peter Kellner http://peterkellner.net Microsoft MVP • ASPInsider
    Friday, October 22, 2010 7:54 PM