The type or namespace name 'SqlServer' doe

2019-08-19 02:12发布

问题:

This is a strange problem I'm having, I've downloaded the WebSharingAppDemo sample from Microosfts website but when I try to compile it in Visual Studio 2008 I get the following error:

The type or namespace name 'SqlServer' does not exist in the namespace 'Microsoft.Synchronization.Data'

When attempting to use the Microsoft.Synchronizaqtion.Data.SqlServer.

Any ideas what might be causing this?

回答1:

You probably need to add a reference to Microsoft.Synchronization.Data.SqlServer

Right-Click project
Choose Add Reference...
Find and add Microsoft.Synchronization.Data.SqlServer under the .NET tab

If you can't find it in the list, you may need to install the Microsoft Sync Framework:

http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=23217

and/or SQL Server 2008 Express:

http://www.microsoft.com/download/en/details.aspx?id=1695