T
travis.clayton
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/d...y/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
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/d...y/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