![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Setup(All physically separate machines): Client - Pocket PC 2003 Web Server - Win2K3 svr, IIS 6.0, Basic Authentication, SSL w/Certficate, Sql CE agent running, Sql CE sp3 Sql Server - Sql 2000 sp3, Merge Replication publisher Problem: Pocket PC is not on the domain, it can just see the web server. User logs in w/domain credentials. I'm using the System.Data.SqlServerCe.SqlCeReplication to perform the data sync. Like so: using(SqlCeReplication repl = new SqlCeReplication()) { repl.InternetUrl = "https://sqlcewebserver/sscesa20.dll"; repl.InternetLogin = "DomainUserName"; repl.InternetPassword = "DomainPassword"; repl.Publisher = "SqlSvrComputerName"; repl.PublisherDatabase = "MyDatabase"; repl.Publication = "MyDatabasePublisher"; repl.PublisherSecurityMode = SecurityType.NTAuthentication; repl.SubscriberConnectionString = "\\Program Files\\MyProgram\\Data Source=MyDatabase.sdf"; repl.Subscriber = "PocketPCName"; repl.ExchangeType = ExchangeType.BiDirectional; if(!System.IO.File.Exists(_"\\Program Files\\MyProgram\\Data Source=MyDatabase.sdf")) { repl.AddSubscription(AddOption.CreateDatabase); } repl.Synchronize(); } We initially had IIS set up to run "Integrated Windows auth" and switched to "Basic Auth". I read here, http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnsqlce/html/sqlce_secmodelscen20.asp, that for windows auth on the IIS server means that it needs to be physically on the same box as the sql server. Here is the error detail I'm getting: The HRESULT: -2147012858, Error Message: "A request to send data to the computer running IIS has failed. For more information see HRESULT", Minor err: 28037, Source: Microsoft Sql Server 2000 Windows CE Edition. I verified that I can navigate to the website from Pocket IE, pass in my credentials and i get what I'm supposed to, "SQL Server CE Server Agent". I'm stuck on this one. Is there something else to check on the sql or web server? Is my topology wrong for this scenario? Any help is greatly appreciated. Thanks, Travis |
#3
| |||
| |||
|
#4
| |||
| |||
|
#5
| |||
| |||
|
|
My apologies, the first was a copy paste job, I am in fact passing, "Data Source=\\Program Files\\MyProgram\\MyDatabase.sdf" to the SubscriberConnectionString. As for the File.Exists, I'm doing this: if(!File.Exists("\\Program Files\\MyProgram\\MyDatabase.sdf")) Should it be: if(!File.Exists("Data Source=\\Program Files\\MyProgram\\MyDatabase.sdf")) ? |
|
My main problem at the moment is the data synching. The certificate was created by a system admin. He sent me a ".cer" file. I copied it to the PPC, and clicked on it. It asked me if I wanted to install it and I did. Is this what you mean by installing the root certificate from the CA on the PPC? Is there something else that needs to be done? thx, Travis |
#6
| |||
| |||
|
#7
| |||
| |||
|
|
Try clicking on this certificate on your PC and see what server name is specified in the properties. I suspect that the certificate is issued for a fully-qualified server name, while you are using just part of it. SSL certificate issued to myserver.mycompany.com will fail check if the server is accessed as https://myserver You might find it easier to test this without SSL to make sure the rest works. -- Alex Feinman --- Visit http://www.opennetcf.org travis.clayton (AT) gmail (DOT) com> wrote in message news:1102406251.846438.283890 (AT) f14g2000cwb (DOT) googlegroups.com... My apologies, the first was a copy paste job, I am in fact passing, "Data Source=\\Program Files\\MyProgram\\MyDatabase.sdf" to the SubscriberConnectionString. As for the File.Exists, I'm doing this: if(!File.Exists("\\Program Files\\MyProgram\\MyDatabase.sdf")) Should it be: if(!File.Exists("Data Source=\\Program Files\\MyProgram\\MyDatabase.sdf")) ? No. What you have is correct. My main problem at the moment is the data synching. The certificate was created by a system admin. He sent me a ".cer" file. I copied it to the PPC, and clicked on it. It asked me if I wanted to install it and I did. Is this what you mean by installing the root certificate from the CA on the PPC? Is there something else that needs to be done? thx, Travis |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |