Laden...

SQL Server 2014 - Microsoft.SqlServer.Replication.dll - Fehler beim Verarbeiten der Antwortnachricht

Erstellt von TortenTheo vor 4 Jahren Letzter Beitrag vor 4 Jahren 1.157 Views
T
TortenTheo Themenstarter:in
3 Beiträge seit 2019
vor 4 Jahren
SQL Server 2014 - Microsoft.SqlServer.Replication.dll - Fehler beim Verarbeiten der Antwortnachricht

Hallo,

ich habe ein Problem mit der Web Synchronisation von MS SQL Server2014.

Aktuell läuft alles wie folgt:
Server: Windows Server 2012 R2(aktuell) mit SQL Server 2014(aktuell) ist Verleger und Verteiler, IIS und FTP
Client: Windows 7(Embedded Standard) mit SQL Server 2012 Express, Web Synchronisation wird über einen Windows Dienst gesteuert.

In der Konstellation läuft alles prima.

Jetzt muss ich das Ganze für Windows 10 und SQL Server 2014 Express umstellen.
Sollte ja kein Problem sein. 🙂 Verweis auf die neuen DLL's und los geht's.

Leider bekomme ich jetzt immer die Fehlermeldung: Fehler beim Verarbeiten der Antwortnachricht.

Hier mal das Log:> Fehlermeldung:

2019-07-26 11:15:49.030 Connecting to OLE DB Abonnent at datasource: 'PC1\SQLEXPRESS', location: '', catalog: 'Intranet_9304', providerstring: '' using provider 'SQLNCLI11'
2019-07-26 11:15:49.035 OLE DB Abonnent: PC1\SQLEXPRESS
DBMS: Microsoft SQL Server
Version: 12.00.2000
catalog name: Intranet_9304
user name: dbo
API conformance: 0
SQL conformance: 0
transaction capable: 1
read only: F
identifier quote char: "
non_nullable_columns: 0
owner usage: 15
max table name len: 128
max column name len: 128
need long data len:
max columns in table: 1000
max columns in index: 16
max char literal len: 131072
max statement len: 131072
max row size: 131072
2019-07-26 11:15:49.035 OLE DB Abonnent 'PC1\SQLEXPRESS': select SERVERPROPERTY ('ProductVersion')
2019-07-26 11:15:49.036 OLE DB Abonnent 'PC1\SQLEXPRESS': {call sp_MSreplcheck_subscribe}
2019-07-26 11:15:49.036 OLE DB Abonnent 'PC1\SQLEXPRESS': set nocount on declare @dbname sysname select @dbname = db_name() declare @collation nvarchar(255) select @collation = convert(nvarchar(255), databasepropertyex(@dbname, N'COLLATION')) select collationproperty(@collation, N'CODEPAGE') as 'CodePage', collationproperty(@collation, N'LCID') as 'LCID', collationproperty(@collation, N'COMPARISONSTYLE') as 'ComparisonStyle',cast(case when convert (int,databasepropertyex (@dbname,'comparisonstyle')) & 0x1 = 0x1 then 0 else 1 end as bit) as DB_CaseSensitive,cast(case when convert (int,serverproperty ('comparisonstyle')) & 0x1 = 0x1 then 0 else 1 end as bit) as Server_CaseSensitive set nocount off
2019-07-26 11:15:49.037 OLE DB Abonnent 'PC1\SQLEXPRESS': {call sys.sp_MSuselightweightreplication(?,?,?,?)}
2019-07-26 11:15:49.037 OLE DB Abonnent 'PC1\SQLEXPRESS': {?=call sp_helpsubscription_properties (N'30-Intra-Test', N'Kassenportal', N'Merge9304')}
2019-07-26 11:15:49.038 Distributor security mode: 0, login name: ABCUser, password: ********.
2019-07-26 11:15:49.038 OLE DB Abonnent 'PC1\SQLEXPRESS': {call sys.sp_MShelp_profilecache(N'DEFAULT')}
2019-07-26 11:15:49.039 OLE DB Abonnent 'PC1\SQLEXPRESS': {call sys.sp_MSadd_merge_history90 (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}
2019-07-26 11:15:49.041 Die an Verleger "30-Intra-Test" zu sendende Uploadnachricht wird generiert.
2019-07-26 11:15:49.041 OLE DB Abonnent 'PC1\SQLEXPRESS': {call sys.sp_MSadd_merge_history90 (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}
2019-07-26 11:15:49.043 Vom Mergeprozess wird die Exchange-ID 'D0F55926-639E-42CD-80C4-84A76699684D' für diese Websynchronisierungssitzung verwendet.
2019-07-26 11:15:49.043 Connecting to OLE DB at datasource: 'PC1\SQLEXPRESS', location: '', catalog: 'Intranet_9304', providerstring: '' using provider 'SQLNCLI11'
2019-07-26 11:15:49.046 OLE DB : PC1\SQLEXPRESS
DBMS: Microsoft SQL Server
Version: 12.00.2000
catalog name: Intranet_9304
user name: dbo
API conformance: 0
SQL conformance: 0
transaction capable: 1
read only: F
identifier quote char: "
non_nullable_columns: 0
owner usage: 15
max table name len: 128
max column name len: 128
need long data len:
max columns in table: 1000
max columns in index: 16
max char literal len: 131072
max statement len: 131072
max row size: 131072
2019-07-26 11:15:49.046 OLE DB 'PC1\SQLEXPRESS': set nocount on declare @dbname sysname select @dbname = db_name() declare @collation nvarchar(255) select @collation = convert(nvarchar(255), databasepropertyex(@dbname, N'COLLATION')) select collationproperty(@collation, N'CODEPAGE') as 'CodePage', collationproperty(@collation, N'LCID') as 'LCID', collationproperty(@collation, N'COMPARISONSTYLE') as 'ComparisonStyle',cast(case when convert (int,databasepropertyex (@dbname,'comparisonstyle')) & 0x1 = 0x1 then 0 else 1 end as bit) as DB_CaseSensitive,cast(case when convert (int,serverproperty ('comparisonstyle')) & 0x1 = 0x1 then 0 else 1 end as bit) as Server_CaseSensitive set nocount off
2019-07-26 11:15:49.047 OLE DB 'PC1\SQLEXPRESS': exec sp_helpmergepublication @publication = N'Merge9304', @reserved = 'internal', @publisher = N'30-Intra-Test', @publisher_db = N'Kassenportal'
2019-07-26 11:15:49.048 OLE DB Abonnent 'PC1\SQLEXPRESS': {call sys.sp_MSgetreplicainfo(?,?,?,?,?,?,?,90)}
2019-07-26 11:15:49.049 OLE DB Abonnent 'PC1\SQLEXPRESS': {call sys.sp_MSgetreplicainfo(?,?,?,?,?,?,?,90)}
2019-07-26 11:15:49.083 OLE DB Abonnent 'PC1\SQLEXPRESS': {call sys.sp_MSsetreplicainfo (?,?,?,?,?,?,?,?,?,?,90,?,?,0)}
2019-07-26 11:15:49.085 OLE DB Abonnent 'PC1\SQLEXPRESS': {call sp_MSmergeupdatelastsyncinfo (?,?,?)}
2019-07-26 11:15:49.085 OLE DB Abonnent 'PC1\SQLEXPRESS': {call sys.sp_MSenumreplicas90 }
2019-07-26 11:15:49.086 OLE DB Abonnent 'PC1\SQLEXPRESS': {call sys.sp_MSenum_metadataaction_requests(?,?,?,?)}
2019-07-26 11:15:49.086 OLE DB Abonnent 'PC1\SQLEXPRESS': {call sp_MSgetlastsentrecgens (?)}
2019-07-26 11:15:49.086 OLE DB Abonnent 'PC1\SQLEXPRESS': {call sp_MSgetmakegenerationapplock_90(?,?)}
2019-07-26 11:15:49.087 OLE DB Abonnent 'PC1\SQLEXPRESS': {call sys.sp_MSmakegeneration (?, NULL,NULL,NULL,100)}
2019-07-26 11:15:49.088 OLE DB Abonnent 'PC1\SQLEXPRESS': {call sp_MSreleasemakegenerationapplock}
2019-07-26 11:15:49.089 OLE DB Abonnent 'PC1\SQLEXPRESS': {call sys.sp_MSadd_merge_history90 (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}
2019-07-26 11:15:49.090 Es mussten keine Daten zusammengeführt werden.
2019-07-26 11:15:49.090 OLE DB Abonnent 'PC1\SQLEXPRESS': {call sys.sp_MSadd_merge_history90 (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}
2019-07-26 11:15:49.091 Die Anforderungsnachricht wurde generiert, sie wird nun für das Hochladen vorbereitet.
2019-07-26 11:15:49.091 OLE DB Abonnent 'PC1\SQLEXPRESS': {call sys.sp_MSadd_merge_history90 (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}
2019-07-26 11:15:49.092 Die Größe der Uploadanforderung beträgt 1692 Byte.
2019-07-26 11:15:52.480 OLE DB Abonnent 'PC1\SQLEXPRESS': {call sys.sp_MSadd_merge_history90 (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}
2019-07-26 11:15:52.483 Insgesamt wurden 1 Segmente hochgeladen.
2019-07-26 11:15:52.483 OLE DB Abonnent 'PC1\SQLEXPRESS': {call sys.sp_MSadd_merge_history90 (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}
2019-07-26 11:15:52.484 Die Anforderungsnachricht wurde an "https://repl.test:40500/repl/replisapi.dll" gesendet.
2019-07-26 11:15:52.487 OLE DB Abonnent 'PC1\SQLEXPRESS': {call sys.sp_MSadd_merge_history90 (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}
2019-07-26 11:15:52.488 Insgesamt wurden 5 Segmente heruntergeladen.
2019-07-26 11:15:52.598 OLE DB Abonnent 'PC1\SQLEXPRESS': {call sys.sp_MSadd_merge_history90 (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}
2019-07-26 11:15:52.600 Fehler beim Verarbeiten der Antwortnachricht.
2019-07-26 11:15:52.600 OLE DB Abonnent 'PC1\SQLEXPRESS': {call sp_MSmergeupdatelastsyncinfo (?,?,?)}
2019-07-26 11:15:52.602 OLE DB Abonnent 'PC1\SQLEXPRESS': {call sp_MSmergeupdatelastsyncinfo (?,?,?)}
2019-07-26 11:15:52.602 Disconnecting from OLE DB Abonnent 'PC1\SQLEXPRESS'
2019-07-26 11:15:52.603 Disconnecting from OLE DB Abonnent 'PC1\SQLEXPRESS'
2019-07-26 11:15:52.603 Disconnecting from OLE DB 'PC1\SQLEXPRESS'
2019-07-26 11:15:52.603 Disconnecting from OLE DB 'PC1\SQLEXPRESS'

Fehlermeldung:
Ausnahme ausgelöst: "Microsoft.SqlServer.Replication.ComErrorException" in Microsoft.SqlServer.Replication.dll

Und hier noch das dazugehörige Codesnippet


MergeAgent = MergePullSubscription.SynchronizationAgent;
MergeAgent.HostName = this.Hostname;
MergeAgent.PublisherSecurityMode = SecurityMode.Standard;
MergeAgent.PublisherLogin = this.PublisherLogin;
MergeAgent.PublisherPassword = this.PublisherPassword;
MergeAgent.DistributorSecurityMode = SecurityMode.Standard;
MergeAgent.Distributor = this.DistributorName;
MergeAgent.DistributorLogin = this.DistributorLogin;
MergeAgent.DistributorPassword = this.DistributorPassword;
MergeAgent.UseWebSynchronization = true;
MergeAgent.InternetUrl = this.WebSyncUrl;
MergeAgent.InternetSecurityMode = SecurityMode.Standard;
MergeAgent.InternetLogin = this.InternetLogin;
MergeAgent.InternetPassword = this.InternetPassword;
MergeAgent.FileTransferType = FileTransferOption.Ftp;
.
.
.
MergeAgent.Synchronize();
MergeAgent.Dispose();

Hat jemand eine IDEE? Ich hänge da jetzt schon ein paar Tage dran fest.

Gruß Thomas

16.827 Beiträge seit 2008
vor 4 Jahren

Und was steht in der Exception drin? Die hat in .NET immer eine Nachricht und einen StackTrace.
[Artikel] Debugger: Wie verwende ich den von Visual Studio?

T
TortenTheo Themenstarter:in
3 Beiträge seit 2019
vor 4 Jahren

Hallo Abt,

leider steht in der Exception nicht viel drin.(Siehe Anlage)

Gruß Thomas

T
TortenTheo Themenstarter:in
3 Beiträge seit 2019
vor 4 Jahren

Hallo,

hier noch kurz eine Lösung die bei mir funktioniert.

Ich verwende nicht mehr wie oben beschrieben die Dll's sonder nutzte jetzt die replmerg.exe in meinem Service.
Warum auch immer das hat auf Anhieb funktioniert.

Gruß
Thomas