私はSQL CE 3.5 SP1データベースを複製するのではなくsyncrhonization時に、私は次のエラー投げていますしようとしています:。提供される接続情報をSQL Serverに接続するモバイルエミュレータ接続障害(マージレプリケーション)
」失敗をSQLサーバーが存在せず、IISユーザーがSQL Serverを実行しているコンピュータ上の有効なユーザーでないか、パスワードが正しくないためアクセスが拒否されます。
私はWindows Mobile 6 Professionalエミュレータを使用しています。接続しようとしているマシンは、Windows XP Professional SP3を実行しているWindows仮想マシンです。私は、ユーザー権限を検証し、(私はWebページにアクセスすることができます)エミュレータのために、二重にチェックIISの設定をネットワークアダプタの設定を構成している、とのトリプルは、私の接続文字列をチェックする:
SqlCeReplication rpl = null;
try
{
// Creates the replication object.
rpl = new SqlCeReplication();
// Establishes the connection string.
rpl.SubscriberConnectionString = @"Data Source = \Program Files\ParkSurvey\ParkSurvey.sdf; Password = *; Temp File Max Size = 512;
Max Database Size = 512; Max Buffer Size = 512; Flush Interval = 20; Autoshrink Threshold = 10; Default Lock Escalation = 100";
// Sets the Publisher properties.
rpl.PublisherSecurityMode = SecurityType.NTAuthentication;
rpl.Publisher = "PUBLISHER";
rpl.PublisherLogin = "INDICOPUBLIC\\subuser";
rpl.PublisherPassword = "*";
rpl.PublisherDatabase = "PUBLISHER";
rpl.Publication = "ParkSurveyPublication";
// Sets the internet replication properties.
rpl.InternetUrl = "http://replication/sqlce/sqlcesa35.dll";
rpl.InternetLogin = "INDICOPUBLIC\\subuser";
rpl.InternetPassword = "*";
rpl.ConnectionManager = true;
// Sets the Distributor properties.
rpl.Distributor = "PUBLISHER";
rpl.DistributorLogin = "INDICOPUBLIC\\subuser";
rpl.DistributorPassword = "psrAdmin";
rpl.DistributorSecurityMode = SecurityType.NTAuthentication;
// Sets the timeout properties.
rpl.ConnectionRetryTimeout = 120;
rpl.ConnectTimeout = 6000;
rpl.ReceiveTimeout = 6000;
rpl.SendTimeout = 6000;
// Sets the Subscriber properties.
rpl.Subscriber = "ParkSurveySubscriber";
rpl.HostName = "Mobile1";
rpl.CompressionLevel = 6;
rpl.ExchangeType = ExchangeType.BiDirectional;
// Call the replication methods.
rpl.Synchronize();
}
catch (SqlCeException sqlEx)
{
MessageBox.Show(sqlEx.Message);
}
finally
{
// Disposing the replication object
if (rpl != null)
{
rpl.Dispose();
}
}
私もホストマシンを開くしようとしてきました自身をMobileエミュレータのファイルエクスプローラで開き、「ネットワークパスが見つかりませんでした」というメッセージが表示されます。これは私がそれがエミュレータ自体の中でActiveSyncの問題であると信じさせる。誰にもアドバイスはありますか?
IPアドレスへの接続も試してみましたが、実際には既に3.5 SP2を使用しています。私が最初に投稿した情報は誤植でした。私はVirtual PCの問題であるかどうか、また自分のPCや私たちのネットワーク上の他のPCに接続しようとしましたが、運がなかったかどうかをトラブルシューティングしました。 – PicoDeGallo