S
Steve B.
Hi,
I have an application that use merge replication to synchronize.
I use this code :
/// <summary>
/// Gets the recplication object
/// </summary>
protected SqlCeReplication GetReplicationObject()
{
SqlCeReplication _replication;
if(!_configured)
throw new NullReferenceException(
"You must call the Configure method before synchronizing"
);
_replication = new SqlCeReplication(); // The exception throws here
_replication.InternetUrl = _internetUrl;
_replication.Publisher = _publisher;
_replication.PublisherDatabase = _publisherDataBase;
_replication.PublisherSecurityMode = SecurityType.NTAuthentication;
_replication.Publication = _publication;
_replication.SubscriberConnectionString = BuildLocalConnectionString();
_replication.Subscriber = _subscriber;
_replication.InternetLogin = _userName;
_replication.InternetPassword = _password;
_replication.CompressionLevel = 6;
return _replication;
}
This code works well with the CF 1.1 version. Now with the CF 2.0 version
this does not work.
The line "_replication = new SqlCeReplication();" throw an exception "A sql
mobile DLL could not be loaded. Reinstall Sql Mobile. [ DLL Name =
sqlceca30.dll ]".
I actually have hard reseted the pda, deployed again the app, but the app
still does not works.
I also tryed this code in another application using the same parameters, and
that works !
So what in this application could cause the application to stop working
correctly ?
Thanks in advance,
Steve
I have an application that use merge replication to synchronize.
I use this code :
/// <summary>
/// Gets the recplication object
/// </summary>
protected SqlCeReplication GetReplicationObject()
{
SqlCeReplication _replication;
if(!_configured)
throw new NullReferenceException(
"You must call the Configure method before synchronizing"
);
_replication = new SqlCeReplication(); // The exception throws here
_replication.InternetUrl = _internetUrl;
_replication.Publisher = _publisher;
_replication.PublisherDatabase = _publisherDataBase;
_replication.PublisherSecurityMode = SecurityType.NTAuthentication;
_replication.Publication = _publication;
_replication.SubscriberConnectionString = BuildLocalConnectionString();
_replication.Subscriber = _subscriber;
_replication.InternetLogin = _userName;
_replication.InternetPassword = _password;
_replication.CompressionLevel = 6;
return _replication;
}
This code works well with the CF 1.1 version. Now with the CF 2.0 version
this does not work.
The line "_replication = new SqlCeReplication();" throw an exception "A sql
mobile DLL could not be loaded. Reinstall Sql Mobile. [ DLL Name =
sqlceca30.dll ]".
I actually have hard reseted the pda, deployed again the app, but the app
still does not works.
I also tryed this code in another application using the same parameters, and
that works !
So what in this application could cause the application to stop working
correctly ?
Thanks in advance,
Steve