IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Windows Forms Discussion :

[C#] Message d'erreur vide dans une replication et rda [Débutant(e)]


Sujet :

Windows Forms

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre confirmé Avatar de Roach-
    Profil pro
    Inscrit en
    Novembre 2004
    Messages
    135
    Détails du profil
    Informations personnelles :
    Localisation : Canada

    Informations forums :
    Inscription : Novembre 2004
    Messages : 135
    Par défaut [C#] Message d'erreur vide dans une replication et rda
    J'aimerais savoir se qui cause cette erreur, car je suis dans la librairie msdn et à date je ne trouve rien.

    Voici la collection de l'erreur :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
     
    -	[0]	{System.Data.SqlServerCe.SqlCeError}	System.Data.SqlServerCe.SqlCeError
    	System.Object	{System.Data.SqlServerCe.SqlCeError}	System.Object
    +	errorParameters	{Length=3}	string[]
    	ErrorParameters	error: cannot obtain value	string[]
    	HResult	error: cannot obtain value	int
    	hResult	-2147467259	int
    	Message	error: cannot obtain value	string
    	message	"A call to SQL Server Reconciler failed. [,,,,,]"	string
    	NativeError	error: cannot obtain value	int
    	nativeError	29006	int
    	NumericErrorParameters	error: cannot obtain value	int[]
    +	numericErrorParameters	{Length=3}	int[]
    	source	"Microsoft SQL Server 2000 Windows CE Edition"	string
    	Source	error: cannot obtain value	string
    -	[1]	{System.Data.SqlServerCe.SqlCeError}	System.Data.SqlServerCe.SqlCeError
    	System.Object	{System.Data.SqlServerCe.SqlCeError}	System.Object
    +	errorParameters	{Length=3}	string[]
    	ErrorParameters	error: cannot obtain value	string[]
    	HResult	error: cannot obtain value	int
    	hResult	-2147201001	int
    	Message	error: cannot obtain value	string
    	message	"The process could not deliver the snapshot to the Subscriber."	string
    	NativeError	error: cannot obtain value	int
    	nativeError	0	int
    	NumericErrorParameters	error: cannot obtain value	int[]
    +	numericErrorParameters	{Length=3}	int[]
    	source	"Merge Replication Provider"	string
    	Source	error: cannot obtain value	string
    merci

  2. #2
    Membre Expert
    Avatar de freddyboy
    Homme Profil pro
    Architecte technique
    Inscrit en
    Novembre 2003
    Messages
    810
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Bouches du Rhône (Provence Alpes Côte d'Azur)

    Informations professionnelles :
    Activité : Architecte technique
    Secteur : Bâtiment Travaux Publics

    Informations forums :
    Inscription : Novembre 2003
    Messages : 810
    Par défaut
    tu peux nous donner le code qui te cause cette erreur ?
    tu bosse sur un PDA ?

    @+

  3. #3
    Rédacteur
    Avatar de Thomas Lebrun
    Profil pro
    Inscrit en
    Octobre 2002
    Messages
    9 161
    Détails du profil
    Informations personnelles :
    Âge : 43
    Localisation : France

    Informations forums :
    Inscription : Octobre 2002
    Messages : 9 161
    Par défaut
    Citation Envoyé par freddyboy
    tu peux nous donner le code qui te cause cette erreur ?
    Oui, car là, c'est assez flou

  4. #4
    Membre confirmé Avatar de Roach-
    Profil pro
    Inscrit en
    Novembre 2004
    Messages
    135
    Détails du profil
    Informations personnelles :
    Localisation : Canada

    Informations forums :
    Inscription : Novembre 2004
    Messages : 135
    Par défaut
    Je teste sur l'émulateur de pocketpc en se moment.


    Voisi le code complet de syncrinize.cs

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    using System;
    using System.Drawing;
    using System.Collections;
    using System.ComponentModel;
    using System.Windows.Forms;
    using System.Data;
    using System.Data.SqlServerCe;
    using System.Data.Common;
     
    namespace BuyerApp
    {
    	/// <summary>
    	/// Summary description for syncronize.
    	/// </summary>
    	public class syncronize : System.Windows.Forms.Form
    	{
    		private System.Windows.Forms.Label label1;
    		private System.Windows.Forms.Label label2;
    		private System.Windows.Forms.Label label3;
    		private System.Windows.Forms.Label label4;
    		private System.Windows.Forms.Label label5;
    		private System.Windows.Forms.Label label6;
    		private System.Windows.Forms.Label label7;
    		private System.Windows.Forms.Label label8;
    		private System.Windows.Forms.Label label9;
    		private System.Windows.Forms.TextBox txtPublisher;
    		private System.Windows.Forms.TextBox txtUserID;
    		private System.Windows.Forms.TextBox txtPassword;
    		private System.Windows.Forms.TextBox txtPublication;
    		private System.Windows.Forms.TextBox txtDataBase;
    		private System.Windows.Forms.TextBox txtInternetURL;
    		private System.Windows.Forms.TextBox txtInternetID;
    		private System.Windows.Forms.TextBox txtSubscription;
    		private System.Windows.Forms.TextBox txtFileName;
    		private System.Windows.Forms.Label label10;
    		private System.Windows.Forms.TextBox txtInternetPassword;
    		private System.Windows.Forms.Button button1;
     
    		public syncronize()
    		{
    			//
    			// Required for Windows Form Designer support
    			//
    			InitializeComponent();
     
    			//
    			// TODO: Add any constructor code after InitializeComponent call
    			//
    		}
     
    		/// <summary>
    		/// Clean up any resources being used.
    		/// </summary>
    		protected override void Dispose( bool disposing )
    		{
    			base.Dispose( disposing );
    		}
     
    		#region Windows Form Designer generated code
    		/// <summary>
    		/// Required method for Designer support - do not modify
    		/// the contents of this method with the code editor.
    		/// </summary>
    		private void InitializeComponent()
    		{
    			this.label1 = new System.Windows.Forms.Label();
    			this.label2 = new System.Windows.Forms.Label();
    			this.label3 = new System.Windows.Forms.Label();
    			this.label4 = new System.Windows.Forms.Label();
    			this.label5 = new System.Windows.Forms.Label();
    			this.label6 = new System.Windows.Forms.Label();
    			this.label7 = new System.Windows.Forms.Label();
    			this.label8 = new System.Windows.Forms.Label();
    			this.label9 = new System.Windows.Forms.Label();
    			this.txtPublisher = new System.Windows.Forms.TextBox();
    			this.txtUserID = new System.Windows.Forms.TextBox();
    			this.txtPassword = new System.Windows.Forms.TextBox();
    			this.txtPublication = new System.Windows.Forms.TextBox();
    			this.txtDataBase = new System.Windows.Forms.TextBox();
    			this.txtInternetURL = new System.Windows.Forms.TextBox();
    			this.txtInternetID = new System.Windows.Forms.TextBox();
    			this.txtSubscription = new System.Windows.Forms.TextBox();
    			this.txtFileName = new System.Windows.Forms.TextBox();
    			this.button1 = new System.Windows.Forms.Button();
    			this.txtInternetPassword = new System.Windows.Forms.TextBox();
    			this.label10 = new System.Windows.Forms.Label();
    			// 
    			// label1
    			// 
    			this.label1.Location = new System.Drawing.Point(0, 4);
    			this.label1.Size = new System.Drawing.Size(60, 16);
    			this.label1.Text = "Publisher :";
    			// 
    			// label2
    			// 
    			this.label2.Location = new System.Drawing.Point(0, 24);
    			this.label2.Size = new System.Drawing.Size(72, 16);
    			this.label2.Text = "Publisher Id :";
    			// 
    			// label3
    			// 
    			this.label3.Location = new System.Drawing.Point(0, 44);
    			this.label3.Size = new System.Drawing.Size(112, 16);
    			this.label3.Text = "Publisher Password :";
    			// 
    			// label4
    			// 
    			this.label4.Location = new System.Drawing.Point(0, 64);
    			this.label4.Size = new System.Drawing.Size(100, 16);
    			this.label4.Text = "Publication Name :";
    			// 
    			// label5
    			// 
    			this.label5.Location = new System.Drawing.Point(0, 84);
    			this.label5.Size = new System.Drawing.Size(100, 16);
    			this.label5.Text = "DataBase Name :";
    			// 
    			// label6
    			// 
    			this.label6.Location = new System.Drawing.Point(0, 104);
    			this.label6.Size = new System.Drawing.Size(76, 16);
    			this.label6.Text = "Internet URL :";
    			// 
    			// label7
    			// 
    			this.label7.Location = new System.Drawing.Point(0, 124);
    			this.label7.Size = new System.Drawing.Size(104, 16);
    			this.label7.Text = "Internet Id :";
    			// 
    			// label8
    			// 
    			this.label8.Location = new System.Drawing.Point(0, 164);
    			this.label8.Size = new System.Drawing.Size(108, 16);
    			this.label8.Text = "Subscription Name :";
    			// 
    			// label9
    			// 
    			this.label9.Location = new System.Drawing.Point(0, 184);
    			this.label9.Size = new System.Drawing.Size(100, 16);
    			this.label9.Text = "Local File Name :";
    			// 
    			// txtPublisher
    			// 
    			this.txtPublisher.Location = new System.Drawing.Point(104, 0);
    			this.txtPublisher.Size = new System.Drawing.Size(136, 20);
    			this.txtPublisher.Text = "server1";
    			// 
    			// txtUserID
    			// 
    			this.txtUserID.Location = new System.Drawing.Point(104, 20);
    			this.txtUserID.Size = new System.Drawing.Size(136, 20);
    			this.txtUserID.Text = "server1\\\\infoUserRep1";
    			// 
    			// txtPassword
    			// 
    			this.txtPassword.Location = new System.Drawing.Point(104, 40);
    			this.txtPassword.Size = new System.Drawing.Size(136, 20);
    			this.txtPassword.Text = "";
    			// 
    			// txtPublication
    			// 
    			this.txtPublication.Location = new System.Drawing.Point(104, 60);
    			this.txtPublication.Size = new System.Drawing.Size(136, 20);
    			this.txtPublication.Text = "infosalvage";
    			// 
    			// txtDataBase
    			// 
    			this.txtDataBase.Location = new System.Drawing.Point(104, 80);
    			this.txtDataBase.Size = new System.Drawing.Size(136, 20);
    			this.txtDataBase.Text = "infosalvage";
    			// 
    			// txtInternetURL
    			// 
    			this.txtInternetURL.Location = new System.Drawing.Point(104, 100);
    			this.txtInternetURL.Size = new System.Drawing.Size(136, 20);
    			this.txtInternetURL.Text = "http://10.10.10.56/infosalvage/sscesa20.dll";
    			// 
    			// txtInternetID
    			// 
    			this.txtInternetID.Location = new System.Drawing.Point(104, 120);
    			this.txtInternetID.Size = new System.Drawing.Size(136, 20);
    			this.txtInternetID.Text = "server1\\\\infoUserRep1";
    			// 
    			// txtSubscription
    			// 
    			this.txtSubscription.Location = new System.Drawing.Point(104, 160);
    			this.txtSubscription.Size = new System.Drawing.Size(136, 20);
    			this.txtSubscription.Text = "Pocket_PC";
    			// 
    			// txtFileName
    			// 
    			this.txtFileName.Location = new System.Drawing.Point(104, 180);
    			this.txtFileName.Size = new System.Drawing.Size(136, 20);
    			this.txtFileName.Text = "vehcopart.sdf";
    			// 
    			// button1
    			// 
    			this.button1.Location = new System.Drawing.Point(104, 204);
    			this.button1.Size = new System.Drawing.Size(136, 24);
    			this.button1.Text = "Syncronize Data";
    			this.button1.Click += new System.EventHandler(this.button1_Click);
    			// 
    			// txtInternetPassword
    			// 
    			this.txtInternetPassword.Location = new System.Drawing.Point(104, 140);
    			this.txtInternetPassword.Size = new System.Drawing.Size(136, 20);
    			this.txtInternetPassword.Text = "radiation";
    			// 
    			// label10
    			// 
    			this.label10.Location = new System.Drawing.Point(0, 144);
    			this.label10.Size = new System.Drawing.Size(104, 16);
    			this.label10.Text = "Internet Pass :";
    			// 
    			// syncronize
    			// 
    			this.Controls.Add(this.label10);
    			this.Controls.Add(this.txtInternetPassword);
    			this.Controls.Add(this.button1);
    			this.Controls.Add(this.txtFileName);
    			this.Controls.Add(this.txtSubscription);
    			this.Controls.Add(this.txtInternetID);
    			this.Controls.Add(this.txtInternetURL);
    			this.Controls.Add(this.txtDataBase);
    			this.Controls.Add(this.txtPublication);
    			this.Controls.Add(this.txtPassword);
    			this.Controls.Add(this.txtUserID);
    			this.Controls.Add(this.txtPublisher);
    			this.Controls.Add(this.label9);
    			this.Controls.Add(this.label8);
    			this.Controls.Add(this.label7);
    			this.Controls.Add(this.label6);
    			this.Controls.Add(this.label5);
    			this.Controls.Add(this.label4);
    			this.Controls.Add(this.label3);
    			this.Controls.Add(this.label2);
    			this.Controls.Add(this.label1);
    			this.Text = "Syncronize Data";
     
    		}
    		#endregion
     
    		private void button1_Click(object sender, System.EventArgs e)
    		{
    			SqlCeReplication repl = null;
    			try
    			{
    				repl = new SqlCeReplication();
    				repl.Publisher = txtPublisher.Text;
    				repl.PublisherLogin = txtUserID.Text;
    				repl.PublisherPassword = txtPassword.Text;
    				repl.PublisherSecurityMode = SecurityType.NTAuthentication;
    				repl.Publication = txtPublication.Text;
    				repl.PublisherDatabase = txtDataBase.Text;
     
    				repl.InternetUrl = txtInternetURL.Text;
    				repl.InternetLogin = txtInternetID.Text;
    				repl.InternetPassword = txtInternetPassword.Text;
     
    				repl.Subscriber = txtSubscription.Text;
     
    				string strDataSource = txtFileName.Text;
    				repl.SubscriberConnectionString = "Data Source="+strDataSource;
     
    				while (System.IO.File.Exists(strDataSource) == false)
    				{
    					// Demande de confirmation
    					if(MessageBox.Show("Le fichier n'existe pas ! Voulez-vous le créer ?","Fusion", MessageBoxButtons.YesNo, MessageBoxIcon.Asterisk,MessageBoxDefaultButton.Button1) == DialogResult.Yes)
    					{
    						// Création de la base locale
    						repl.AddSubscription(AddOption.CreateDatabase);	
    						this.Refresh();
    					}
    					else
    					{
    						return;
    					}
    				}
    				Cursor.Current = System.Windows.Forms.Cursors.WaitCursor;
    				repl.Synchronize();
    				MessageBox.Show("Syncronisation done !");
    			}
    			catch(SqlCeException err)
    			{
    				MessageBox.Show(err.Message);
    			}
    			finally
    			{
    				repl.Dispose();
    				Cursor.Current = System.Windows.Forms.Cursors.Default;
    			}
    		}
    	}
    }
    Voulez vous un print sreen du form


    Merci pour la 100ième fois

  5. #5
    Rédacteur
    Avatar de Thomas Lebrun
    Profil pro
    Inscrit en
    Octobre 2002
    Messages
    9 161
    Détails du profil
    Informations personnelles :
    Âge : 43
    Localisation : France

    Informations forums :
    Inscription : Octobre 2002
    Messages : 9 161
    Par défaut
    et à quelle ligne survient l'erreur ?

  6. #6
    Membre confirmé Avatar de Roach-
    Profil pro
    Inscrit en
    Novembre 2004
    Messages
    135
    Détails du profil
    Informations personnelles :
    Localisation : Canada

    Informations forums :
    Inscription : Novembre 2004
    Messages : 135
    Par défaut
    L'erreur est lors de l'exécution, j'ai mit un breakpoint et la collection de l'erreur est le premier post.

    J'ai mit le breakpoint a la ligne du repl.Synchronise();

    J'ai encore une fois l'impression que c'est un niveau serveur car il donne comme erreur comme quoi le procces ne pu pas fournir le snapshot au Subscriber.

    message "The process could not deliver the snapshot to the Subscriber."

  7. #7
    Rédacteur
    Avatar de Thomas Lebrun
    Profil pro
    Inscrit en
    Octobre 2002
    Messages
    9 161
    Détails du profil
    Informations personnelles :
    Âge : 43
    Localisation : France

    Informations forums :
    Inscription : Octobre 2002
    Messages : 9 161
    Par défaut
    Tu as essayer de faire une petite recherche sur notre ami Google :

    http://www.google.fr/search?hl=fr&q=%22The+process+could+not+deliver+the+snapshot+to+the+Subscriber%22&meta=

    et aussi:

    http://groups.google.fr/groups?q=%22The%20process%20could%20not%20deliver%20the%20snapshot%20to%20the%20Subscriber%22&hl=fr&lr=&sa=N&tab=wg


  8. #8
    Membre confirmé Avatar de Roach-
    Profil pro
    Inscrit en
    Novembre 2004
    Messages
    135
    Détails du profil
    Informations personnelles :
    Localisation : Canada

    Informations forums :
    Inscription : Novembre 2004
    Messages : 135
    Par défaut
    Non j'ai pas regarder dans les group de google j'ai seulement regarder dans le search de google et msdn.

    Désolé

  9. #9
    Rédacteur
    Avatar de Thomas Lebrun
    Profil pro
    Inscrit en
    Octobre 2002
    Messages
    9 161
    Détails du profil
    Informations personnelles :
    Âge : 43
    Localisation : France

    Informations forums :
    Inscription : Octobre 2002
    Messages : 9 161
    Par défaut
    Pas besoin de s'excuser, c'était juste pour savor si tu avais regardé dedans et si, éventuellement, tu avis trouvé une réponse à ton problème

  10. #10
    Membre confirmé Avatar de Roach-
    Profil pro
    Inscrit en
    Novembre 2004
    Messages
    135
    Détails du profil
    Informations personnelles :
    Localisation : Canada

    Informations forums :
    Inscription : Novembre 2004
    Messages : 135
    Par défaut
    Pour l'instant nom je n'ai pas trouvé d'info qui ont réglé mon problème mais je sui coriasse

  11. #11
    Membre confirmé Avatar de Roach-
    Profil pro
    Inscrit en
    Novembre 2004
    Messages
    135
    Détails du profil
    Informations personnelles :
    Localisation : Canada

    Informations forums :
    Inscription : Novembre 2004
    Messages : 135
    Par défaut
    Re bonjour à tous,

    J'ai refait le tout, réinstaller le os , SQL 2000 et IIS. Je refait un test et sa ne fonctionne toujours pas. Cependant au lieux de m'apparaitre une message box avec l'erreur dedans comme avec les autre erreurs, j'ai une message box vide. Comment je peut faire pour retracer ou est l'erreur exactement.

    http://10.10.10.56/pubs/sscesa20.dll -> est accèsible par IE sur un ordi de bureau et sur l'émulateur de pocketpc.

    Il y a une chose que j'ai remarqué, quand je met un breakpoint au niveau de l'affichage de l'erreur et que je regarde ce qu'il a dans (repl) et il donne un distributor password et id, je n'ai pas setter de distributor password et id. Est-ce normale ou mon problème peu provenir de la.

  12. #12
    Membre confirmé Avatar de Roach-
    Profil pro
    Inscrit en
    Novembre 2004
    Messages
    135
    Détails du profil
    Informations personnelles :
    Localisation : Canada

    Informations forums :
    Inscription : Novembre 2004
    Messages : 135
    Par défaut
    Voici deux breakpoint

    1. Breakpoint à la ligne repl.Synchronize(); (VS.NET)

    - repl {System.Data.SqlServerCe.SqlCeReplication} System.Data.SqlServerCe.SqlCeReplication
    + System.MarshalByRefObject {System.Data.SqlServerCe.SqlCeReplication} System.MarshalByRefObject
    Distributor null string
    DistributorAddress null string
    DistributorLogin null string
    DistributorNetwork DefaultNetwork System.Data.SqlServerCe.NetworkType
    DistributorPassword null string
    DistributorSecurityMode DBAuthentication System.Data.SqlServerCe.SecurityType
    ExchangeType BiDirectional System.Data.SqlServerCe.ExchangeType
    HostName null string
    InternetLogin "Replmac" string
    InternetPassword "fellowes" string
    InternetProxyLogin null string
    InternetProxyPassword null string
    InternetProxyServer null string
    InternetUrl "http://10.10.10.56/pubs/sscesa20.dll" string
    LoginTimeout 15 short
    pIErrors 759816 int
    pIReplication 750376 int
    ProfileName null string
    Publication "pubs" string
    Publisher "sqlserver" string
    PublisherAddress null string
    PublisherChanges 0 int
    PublisherConflicts 0 int
    PublisherDatabase "pubs" string
    PublisherLogin "Replmac" string
    PublisherNetwork DefaultNetwork System.Data.SqlServerCe.NetworkType
    PublisherPassword "fellowes" string
    PublisherSecurityMode NTAuthentication System.Data.SqlServerCe.SecurityType
    QueryTimeout 300 short
    Subscriber "Pocket_PC" string
    SubscriberChanges 0 int
    SubscriberConnectionString "data source=testpubs.sdf;" string
    Validate NoValidation System.Data.SqlServerCe.ValidateType

    comme vous pouvez voir les distributor sont vide.

    2. Breakpoint à la ligne MessageBox.Show(err.Message); (VS.NET)

    - repl {System.Data.SqlServerCe.SqlCeReplication} System.Data.SqlServerCe.SqlCeReplication
    + System.MarshalByRefObject {System.Data.SqlServerCe.SqlCeReplication} System.MarshalByRefObject
    Distributor "sqlserver" string
    DistributorAddress null string
    DistributorLogin "Replmac" string
    DistributorNetwork DefaultNetwork System.Data.SqlServerCe.NetworkType
    DistributorPassword "fellowes" string
    DistributorSecurityMode NTAuthentication System.Data.SqlServerCe.SecurityType
    ExchangeType BiDirectional System.Data.SqlServerCe.ExchangeType
    HostName null string
    InternetLogin "Replmac" string
    InternetPassword "fellowes" string
    InternetProxyLogin null string
    InternetProxyPassword null string
    InternetProxyServer null string
    InternetUrl "http://10.10.10.56/pubs/sscesa20.dll" string
    LoginTimeout 15 short
    pIErrors 759784 int
    pIReplication 750344 int
    ProfileName null string
    Publication "pubs" string
    Publisher "sqlserver" string
    PublisherAddress null string
    PublisherChanges 0 int
    PublisherConflicts 0 int
    PublisherDatabase "pubs" string
    PublisherLogin "Replmac" string
    PublisherNetwork DefaultNetwork System.Data.SqlServerCe.NetworkType
    PublisherPassword "fellowes" string
    PublisherSecurityMode NTAuthentication System.Data.SqlServerCe.SecurityType
    QueryTimeout 300 short
    Subscriber "Pocket_PC" string
    SubscriberChanges 0 int
    SubscriberConnectionString "data source=testpubs.sdf;" string
    Validate NoValidation System.Data.SqlServerCe.ValidateType

    Les distributor on des donné d'inscrit

    qu'est ce qui peut causer cela.

    Quand je regarde au niveau de err il ne me donne pas d"'erreur en particulier.

    Voici se que j'ai : (VS.NET)

    - err {System.Data.SqlServerCe.SqlCeException} System.Data.SqlServerCe.SqlCeException
    + System.SystemException {"SqlCeException"} System.SystemException
    - Errors {System.Data.SqlServerCe.SqlCeErrorCollection} System.Data.SqlServerCe.SqlCeErrorCollection
    System.Object {System.Data.SqlServerCe.SqlCeErrorCollection} System.Object
    Count 1 int
    Item <cannot view indexed property> System.Data.SqlServerCe.SqlCeError
    - items {Count=1} System.Collections.ArrayList
    - [0] {System.Data.SqlServerCe.SqlCeError} System.Data.SqlServerCe.SqlCeError
    System.Object {System.Data.SqlServerCe.SqlCeError} System.Object
    + errorParameters {Length=3} string[]
    + ErrorParameters {Length=3} string[]
    HResult -2147024891 int
    hResult -2147024891 int
    Message "" string
    message "" string
    NativeError 0 int
    nativeError 0 int
    + NumericErrorParameters {Length=3} int[]
    + numericErrorParameters {Length=3} int[]
    source "Microsoft SQL Server 2000 Windows CE Edition" string
    Source "Microsoft SQL Server 2000 Windows CE Edition" string
    OLEDB 0 int
    RDA_OR_REPL 1 int
    System.Collections.ICollection.IsSynchronized false bool
    + System.Collections.ICollection.SyncRoot {System.Data.SqlServerCe.SqlCeErrorCollection} System.Object
    - errors {System.Data.SqlServerCe.SqlCeErrorCollection} System.Data.SqlServerCe.SqlCeErrorCollection
    System.Object {System.Data.SqlServerCe.SqlCeErrorCollection} System.Object
    Count 1 int
    Item <cannot view indexed property> System.Data.SqlServerCe.SqlCeError
    - items {Count=1} System.Collections.ArrayList
    - [0] {System.Data.SqlServerCe.SqlCeError} System.Data.SqlServerCe.SqlCeError
    System.Object {System.Data.SqlServerCe.SqlCeError} System.Object
    + errorParameters {Length=3} string[]
    + ErrorParameters {Length=3} string[]
    HResult -2147024891 int
    hResult -2147024891 int
    Message "" string
    message "" string
    NativeError 0 int
    nativeError 0 int
    + NumericErrorParameters {Length=3} int[]
    + numericErrorParameters {Length=3} int[]
    source "Microsoft SQL Server 2000 Windows CE Edition" string
    Source "Microsoft SQL Server 2000 Windows CE Edition" string
    OLEDB 0 int
    RDA_OR_REPL 1 int
    System.Collections.ICollection.IsSynchronized false bool
    + System.Collections.ICollection.SyncRoot {System.Data.SqlServerCe.SqlCeErrorCollection} System.Object
    HResult -2147024891 int
    Message "" string
    NativeError 0 int
    Source "Microsoft SQL Server 2000 Windows CE Edition" string

  13. #13
    Rédacteur
    Avatar de minosis
    Inscrit en
    Février 2003
    Messages
    82
    Détails du profil
    Informations forums :
    Inscription : Février 2003
    Messages : 82
    Par défaut
    Salut

    Si ton erreur est toujours :
    message "The process could not deliver the snapshot to the Subscriber."
    Tu es sûr d'avoir bien généré manuellement le premier snapshot après avoir configuré ta réplication de fusion ?
    Sinon regénère-le et va vérifier que les fichiers ont bien été créé dans le répertoire partagé que dû a du créer. Veille à ce que les droits d'accès sur ce rep soient attribués à "Replmac".
    Rédacteur Dotnet / Java / Flash
    http://defaut.developpez.com/

  14. #14
    Membre confirmé Avatar de Roach-
    Profil pro
    Inscrit en
    Novembre 2004
    Messages
    135
    Détails du profil
    Informations personnelles :
    Localisation : Canada

    Informations forums :
    Inscription : Novembre 2004
    Messages : 135
    Par défaut
    Salut,

    Cette erreur a disparu après la réinstallation complète de os Win 2003, de SQL 2000 et IIS.

    Maintenant j'ai seulment une messagebox vide qui apparait. et quand je vais dans VS.NET pour voir les info du breakpoint l'erreur n'a pas de nom, pas de message, pas de native error.

    Donc en se moment je ne sais pas dutout qu'elle est le problème.

    Je continue à chercher, se n'est pas de la programmation qui va me tuer

    Voici la collection de l'erreur :

    - err {System.Data.SqlServerCe.SqlCeException} System.Data.SqlServerCe.SqlCeException
    + System.SystemException {"SqlCeException"} System.SystemException
    - Errors {System.Data.SqlServerCe.SqlCeErrorCollection} System.Data.SqlServerCe.SqlCeErrorCollection
    System.Object {System.Data.SqlServerCe.SqlCeErrorCollection} System.Object
    Count 1 int
    Item <cannot view indexed property> System.Data.SqlServerCe.SqlCeError
    - items {Count=1} System.Collections.ArrayList
    - [0] {System.Data.SqlServerCe.SqlCeError} System.Data.SqlServerCe.SqlCeError
    System.Object {System.Data.SqlServerCe.SqlCeError} System.Object
    + errorParameters {Length=3} string[]
    + ErrorParameters {Length=3} string[]
    HResult -2147024891 int
    hResult -2147024891 int
    Message "" string
    message "" string
    NativeError 0 int
    nativeError 0 int
    + NumericErrorParameters {Length=3} int[]
    + numericErrorParameters {Length=3} int[]
    source "Microsoft SQL Server 2000 Windows CE Edition" string
    Source "Microsoft SQL Server 2000 Windows CE Edition" string
    OLEDB 0 int
    RDA_OR_REPL 1 int
    System.Collections.ICollection.IsSynchronized false bool
    + System.Collections.ICollection.SyncRoot {System.Data.SqlServerCe.SqlCeErrorCollection} System.Object
    - errors {System.Data.SqlServerCe.SqlCeErrorCollection} System.Data.SqlServerCe.SqlCeErrorCollection
    System.Object {System.Data.SqlServerCe.SqlCeErrorCollection} System.Object
    Count 1 int
    Item <cannot view indexed property> System.Data.SqlServerCe.SqlCeError
    - items {Count=1} System.Collections.ArrayList
    - [0] {System.Data.SqlServerCe.SqlCeError} System.Data.SqlServerCe.SqlCeError
    System.Object {System.Data.SqlServerCe.SqlCeError} System.Object
    + errorParameters {Length=3} string[]
    + ErrorParameters {Length=3} string[]
    HResult -2147024891 int
    hResult -2147024891 int
    Message "" string
    message "" string
    NativeError 0 int
    nativeError 0 int
    + NumericErrorParameters {Length=3} int[]
    + numericErrorParameters {Length=3} int[]
    source "Microsoft SQL Server 2000 Windows CE Edition" string
    Source "Microsoft SQL Server 2000 Windows CE Edition" string
    OLEDB 0 int
    RDA_OR_REPL 1 int
    System.Collections.ICollection.IsSynchronized false bool
    + System.Collections.ICollection.SyncRoot {System.Data.SqlServerCe.SqlCeErrorCollection} System.Object
    HResult -2147024891 int
    Message "" string
    NativeError 0 int
    Source "Microsoft SQL Server 2000 Windows CE Edition" string

  15. #15
    Membre confirmé Avatar de Roach-
    Profil pro
    Inscrit en
    Novembre 2004
    Messages
    135
    Détails du profil
    Informations personnelles :
    Localisation : Canada

    Informations forums :
    Inscription : Novembre 2004
    Messages : 135
    Par défaut
    Pour l'instant mon problème est une erreur dont je n'ai pas de détail, la messagebox qui s'affiche est vide, j'ai refait l'application de a à z (dumoin se qui avait de fait) sans résultat concret.

    En se moment j'essaie de savoir d'ou provient l'erreur.

    Je vous en donne des nouvelle.

    PS : J'ai mit un breakpoint au syncronize et les donné dans repl sont bien à la bonne place.
    Voici se que contient repl :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
     
    -	repl	{System.Data.SqlServerCe.SqlCeReplication}	System.Data.SqlServerCe.SqlCeReplication
    +	System.MarshalByRefObject	{System.Data.SqlServerCe.SqlCeReplication}	System.MarshalByRefObject
    	Distributor	null	string
    	DistributorAddress	null	string
    	DistributorLogin	null	string
    	DistributorNetwork	DefaultNetwork	System.Data.SqlServerCe.NetworkType
    	DistributorPassword	null	string
    	DistributorSecurityMode	DBAuthentication	System.Data.SqlServerCe.SecurityType
    	ExchangeType	BiDirectional	System.Data.SqlServerCe.ExchangeType
    	HostName	null	string
    	InternetLogin	"Replmac"	string
    	InternetPassword	"fellowes"	string
    	InternetProxyLogin	null	string
    	InternetProxyPassword	null	string
    	InternetProxyServer	null	string
    	InternetUrl	"http://10.10.10.56/pubs/sscesa20.dll"	string
    	LoginTimeout	15	short
    	pIErrors	832728	int
    	pIReplication	823288	int
    	ProfileName	null	string
    	Publication	"pubs"	string
    	Publisher	"sqlserver"	string
    	PublisherAddress	null	string
    	PublisherChanges	0	int
    	PublisherConflicts	0	int
    	PublisherDatabase	"pubs"	string
    	PublisherLogin	"Replmac"	string
    	PublisherNetwork	DefaultNetwork	System.Data.SqlServerCe.NetworkType
    	PublisherPassword	"fellowes"	string
    	PublisherSecurityMode	NTAuthentication	System.Data.SqlServerCe.SecurityType
    	QueryTimeout	300	short
    	Subscriber	"Pocket_PC"	string
    	SubscriberChanges	0	int
    	SubscriberConnectionString	"data source=db.sdf;"	string
    	Validate	NoValidation	System.Data.SqlServerCe.ValidateType
    Selon se que j'ai pu remarquer c'est synchronize qui lève une exception SqlCeException.

    À bientôt.
    JF

  16. #16
    Rédacteur
    Avatar de minosis
    Inscrit en
    Février 2003
    Messages
    82
    Détails du profil
    Informations forums :
    Inscription : Février 2003
    Messages : 82
    Par défaut
    Salut

    La classe SqlCeException fournit une propriété "Messages" qui contient une liste de messages concernant ton erreur. Fait une boucle dans un "catch(SqlCeException e)" pour les afficher, ça aidera peut être +.

    Sinon, es-tu sûr que ton publisher est "sqlserver" et pas "nommachine\sqlserver" (ça dépend de l'installation de ton SQLServer)
    Rédacteur Dotnet / Java / Flash
    http://defaut.developpez.com/

  17. #17
    Membre confirmé Avatar de Roach-
    Profil pro
    Inscrit en
    Novembre 2004
    Messages
    135
    Détails du profil
    Informations personnelles :
    Localisation : Canada

    Informations forums :
    Inscription : Novembre 2004
    Messages : 135
    Par défaut
    Pour le sqlserver\sqlserver cela ne change rien.

    Pour la propriété message, au lieu de créer une boucle je regarde directement dans VS.NET. Dès qu'il y a une erreur il me donne la collection complète de l'erreur(Hresult, message et autre) et il n'est rien marqué à message, c'est pourquoi je n'ai rien d'afficher dans la messagebox. Avant il y avait d'autre erreur et je regardait dans le message et je savait d'ou elle venait cependant cette erreur ne me donne pas de message.

    merci pour ton aide. si tu as d'autre idée n'hésite pas.

  18. #18
    Rédacteur
    Avatar de minosis
    Inscrit en
    Février 2003
    Messages
    82
    Détails du profil
    Informations forums :
    Inscription : Février 2003
    Messages : 82
    Par défaut
    Ok, bon, reprenons

    Quel est ta configuration ?
    Quels sont les étapes que tu suis pour installer ta réplication ?
    Rédacteur Dotnet / Java / Flash
    http://defaut.developpez.com/

  19. #19
    Membre confirmé Avatar de Roach-
    Profil pro
    Inscrit en
    Novembre 2004
    Messages
    135
    Détails du profil
    Informations personnelles :
    Localisation : Canada

    Informations forums :
    Inscription : Novembre 2004
    Messages : 135
    Par défaut
    ok

    Nom du serveur : sqlserver
    Instance du serveur SQL : sqlserver

    Je commance par créer un utilisateur Replmac dans le groupe users.
    Ensuite je cré un dossier snapshots dan le c:, ensuite je donne les permission read à Replmac et full à moi (maclosky). Ensuite je vais dans Enterprise manager et j'ajoute le user Replmac dans security->logins avec comme db par defaut pubs (celle de l'install de SQL 2000). Après je vais dans replication et je fait un click de droit sur publication pour ajouter une publication, l'assistant ouvre et me demmande la DB je sélectionne pubs, ensuite je choise le type de publication qui est merge publication, ensuite je sélectionne SQL Server CE comme type de subscription, ensuite il me demende de spécifier les articles je choisi la table authors de la db pubs, ensuite il me demende le nom de publication et j'entre pubs. Ensuite il me demende si je veux définir un filtre je sélectionne No, create the publication as specified. Et c'est fini pour l'assistant de publication. Lorsque le message comme quoi la réplication a été créer je click sur publication propertie, je vais dans Subscription Options et je vérifie que l'option allow anonymous est bien cocher, ensuite je vais dans Snapshot Location est j'entre le chemin vers le dossier snapshot du c: et je vais dans Publication Access List et j'ajoute l'utilisateur Replmac. Ensuite je vais dans status et je clicker sur run Agent Now, ensuite je fait apply. Et je vais regarder dans le dossier snapshot voir si la replication a été fait et tout y est. ENsuite je vais dans Configure Connectivity Support in IIS et je double click sur create a new virtual directory. et l'assistant est lancé, j'entre un alias (pubs) et l'authentification et régler a Authentification par windows, ensuite il demende l'utilisateur et j'entre Replmac et ensuite j'entre le path unc vers le dossier snap \\sqlserver\snapshots et voile le rep vituel est créer.

    Je vérifie dans http://10.10.10.56/pubs/sscesa20.dll et il affiche SQL Server CE Server Agent.

    http://sqlserver/pubs/sscesa20.dll fonctionne aussi.

    Voila c'est comme sa que je configure ma replication de fusion.

    merci

  20. #20
    Rédacteur
    Avatar de minosis
    Inscrit en
    Février 2003
    Messages
    82
    Détails du profil
    Informations forums :
    Inscription : Février 2003
    Messages : 82
    Par défaut
    Bon ça à le mérite d'etre complet Et jpense pas que tu ais oublié grand chose.

    Par rapport à ça :
    j'ajoute le user Replmac dans security->logins avec comme db par defaut pubs (celle de l'install de SQL 2000)
    Il faut donner à l'utilisateur les rôles db_reader et db_writer, c'est fait ça ?
    Car donner pubs en base par défaut ne lui donne pas les droits automatiquement.

    Sinon, tu as bien le SP3 d'installé sur ton SQL Server 2000 ?
    Rédacteur Dotnet / Java / Flash
    http://defaut.developpez.com/

+ Répondre à la discussion
Cette discussion est résolue.
Page 1 sur 2 12 DernièreDernière

Discussions similaires

  1. Réponses: 4
    Dernier message: 06/01/2015, 15h56
  2. Récupération message d'erreur lors d'une insertion dans une BDD
    Par LoDev dans le forum VB 6 et antérieur
    Réponses: 11
    Dernier message: 22/12/2007, 19h11
  3. Table vide dans une BD
    Par Riouxe21 dans le forum ASP
    Réponses: 2
    Dernier message: 06/07/2004, 19h48
  4. Update de date vide dans une table
    Par gidebo dans le forum Bases de données
    Réponses: 4
    Dernier message: 15/03/2004, 16h48

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo