S
stone zou
hi:
i use the VS2003, WinCE Emulator4.2 , IIS, SQL Server 2000
IIS security used the anonymous login.
My code is :
DBPath = shellui.sqlcewrapper.LocalDatabase;
lconnstr = "Provider=Microsoft.SQLSERVER.OLEDB.CE.2.0;Data Source=" +
DBPath + "; Password = 123;";
//Create replication object and initialize it
SqlCeReplication sscerepl = new SqlCeReplication();
sscerepl.InternetUrl=URL.Text; //URL of the server agent
sscerepl.InternetPassword = "liuwenhua"; //credentials for the IIS
directory where the server agent resides
sscerepl.InternetLogin ="IUSR_CPULICHWEILIU";
sscerepl.Publisher=SQLServer.Text; //publisher
sscerepl.Publication = "contact"; //name of the publication
sscerepl.PublisherDatabase = "truetel"; //name of the published DB
sscerepl.PublisherLogin = user.Text; //credentials for the DB/PAL
(publication access list)on server
sscerepl.PublisherPassword =password.Text;
sscerepl.Subscriber = "SQLCE_Client"; //name of the client device
(optional)
sscerepl.SubscriberConnectionString = lconnstr; //conn string for the
local SQLCE DB
sscerepl.AddSubscription(AddOption.CreateDatabase);
the return error code is:
native error: 28037
message: a request to send data to the computer running IIS has fialed.
for more information, see HRESULT.[,,,,,]
Source:Microsoft SQL Server 2000 Windows CE Edition
i use the VS2003, WinCE Emulator4.2 , IIS, SQL Server 2000
IIS security used the anonymous login.
My code is :
DBPath = shellui.sqlcewrapper.LocalDatabase;
lconnstr = "Provider=Microsoft.SQLSERVER.OLEDB.CE.2.0;Data Source=" +
DBPath + "; Password = 123;";
//Create replication object and initialize it
SqlCeReplication sscerepl = new SqlCeReplication();
sscerepl.InternetUrl=URL.Text; //URL of the server agent
sscerepl.InternetPassword = "liuwenhua"; //credentials for the IIS
directory where the server agent resides
sscerepl.InternetLogin ="IUSR_CPULICHWEILIU";
sscerepl.Publisher=SQLServer.Text; //publisher
sscerepl.Publication = "contact"; //name of the publication
sscerepl.PublisherDatabase = "truetel"; //name of the published DB
sscerepl.PublisherLogin = user.Text; //credentials for the DB/PAL
(publication access list)on server
sscerepl.PublisherPassword =password.Text;
sscerepl.Subscriber = "SQLCE_Client"; //name of the client device
(optional)
sscerepl.SubscriberConnectionString = lconnstr; //conn string for the
local SQLCE DB
sscerepl.AddSubscription(AddOption.CreateDatabase);
the return error code is:
native error: 28037
message: a request to send data to the computer running IIS has fialed.
for more information, see HRESULT.[,,,,,]
Source:Microsoft SQL Server 2000 Windows CE Edition