pooya1072
چهارشنبه 29 آذر 1391, 00:29 صبح
imports system
imports Microsoft.SqlServer.Management.Common
imports Microsoft.SqlServer.Replication
public class Replication
dim sc as ServerConnection = new ServerConnection("localhost”)
dim dist as ReplicationServer = new ReplicationServer(sc)
dim dDb as DistributionDatabase = new DistributionDatabase("distribution", sc)
dist.InstallDistributor("password1", dDb)
sc.Disconnect()
end class
ولی با این پیام خطا مواجه شدم :
Mixed mode assembly is built against version "v2.0.50727" of the runtime and can not be loaded in the 4.0 runtime without additional configuration information
imports Microsoft.SqlServer.Management.Common
imports Microsoft.SqlServer.Replication
public class Replication
dim sc as ServerConnection = new ServerConnection("localhost”)
dim dist as ReplicationServer = new ReplicationServer(sc)
dim dDb as DistributionDatabase = new DistributionDatabase("distribution", sc)
dist.InstallDistributor("password1", dDb)
sc.Disconnect()
end class
ولی با این پیام خطا مواجه شدم :
Mixed mode assembly is built against version "v2.0.50727" of the runtime and can not be loaded in the 4.0 runtime without additional configuration information