PDA

View Full Version : سوال: خطا در هنگام نصب یک distributor (مربوط به sql ) با برنامه نویسی در ویژوال بیسیک



pooya1072
سه شنبه 28 آذر 1391, 23: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