Re: Still got the same problem

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Kevin Collins \(MS - SQL Mobile\) (kevincol_at_online.microsoft.com)
Date: 09/01/04


Date: Wed, 1 Sep 2004 13:06:30 -0700

Best thing is to reference either the Northwind or IBuySpy sample code that
ships with VS 2003 and SQL Server CE.

"Jeff" <it_consultant1@hotmail.com.NOSPAM> wrote in message
news:%23C%23C4rAkEHA.3536@TK2MSFTNGP12.phx.gbl...
> After some research, I still got the same problem....
>
> I replaced this line:
> rep.SubscriberConnectionString = @" Data Source=\My Documents\test.sdf";
>
> with this line
> rep.SubscriberConnectionString =
> @"Provider=Microsoft.SQLSERVER.OLEDB.CE.2.0;Data Source=\My
> Documents\test.sdf";
>
>
> And still the same problem....
>
> Any clues to why I get this message will be appreciated!
>
> Jeff
>
> "Jeff" <it_consultant1@hotmail.com.NOSPAM> wrote in message
> news:e4UqRL2jEHA.4068@TK2MSFTNGP10.phx.gbl...
>> Hi!
>>
>> IDE: VS 2003 .net + sqlserver2k + sp3
>> Microsoft SQL Server CE 2.0
>> OS: XP pro
>>
>>
>> Here is some of my code in my test app for pocketpc:
>> SqlCeReplication rep = new SqlCeReplication(
>> @http://localhost/Nwind/sscesa20.dll,
>> "","",
>> "PC3",
>> "Northwind",
>> "Northwind",
>> "Testing",
>> @" Data Source=\My Documents\test.sdf");
>>
>> if (!System.IO.File.Exists(@"\My Documents\test.sdf"))
>> {
>> rep.AddSubscription(AddOption.CreateDatabase);
>> }
>> rep.Synchronize();
>>
>> The last line throws this exception:
>> "A requet to send data to he computer running IIS has failed.
>> For more information, see HRESULT. [,,,,,]"
>>
>>
>> Some facts about how my sqlserver configuration and config og my
> replication
>> * Sq server is configured with authentication mode "Windows only"
>>
>> Here is the result of the "Create Publicaton wizard" (the text below are
>> copied from the wizard window)
>>
>> "Create a merge publication from database 'Northwind'.
>>
>> The following types of Subscribers may subscribe to this publication:
>> Servers running SQL Server 2000
>> Heterogeneous data sources
>>
>> Publish the following tables as articles:
>> 'Categories' as 'Categories'
>> 'CustomerCustomerDemo' as 'CustomerCustomerDemo'
>> 'CustomerDemographics' as 'CustomerDemographics'
>> 'Customers' as 'Customers'
>> 'Employees' as 'Employees'
>> 'EmployeeTerritories' as 'EmployeeTerritories'
>> 'Order Details' as 'Order Details'
>> 'Orders' as 'Orders'
>> 'Products' as 'Products'
>> 'Region' as 'Region'
>> 'Shippers' as 'Shippers'
>> 'Suppliers' as 'Suppliers'
>> 'Territories' as 'Territories'
>>
>> The name of this publication is 'Northwind'. The description is 'Merge
>> publication of Northwind database from Publisher PC3.'.
>>
>> Do not filter data in this publication.
>>
>> Allow anonymous subscriptions to this publication.
>>
>> Run the Snapshot Agent at the following scheduled times:
>> Occurs every 1 week(s) on Saturday, at 23:47:00.
>> Run the Snapshot Agent immediately after the publication is created.
>>
>>
>> ***************************
>>
>> Any clue to why I get this exception will be appreciated!
>>
>> Jeff
>>
>>
>>
>
>



Relevant Pages

  • Re: Replication Monitor didnt work because different collations
    ... Looking for a SQL Server replication book? ... SQL 2005 filtered merge replication. ... We changed collations to match the server collation and Replication ... After this change we started all publication snapshots. ...
    (microsoft.public.sqlserver.replication)
  • Re: install/configure SQL Server 2000, SQL Server CE for merge rep
    ... Publication: NorthwindProducts ... PublisherDB: Northwind ... A snapshot of 1 articlewas generated. ... > check the replication monitor in SQL Server 2000 Enterprise Manager ...
    (microsoft.public.sqlserver.ce)
  • Re: Replication problems
    ... machine than SQL Server as you must reference a share on the machine and not ... You can't create a publication due to the 1038 error. ... > not yet have any Publications in my Enterprise Manager. ... > start the SQL Server Agent service manually". ...
    (microsoft.public.sqlserver.ce)
  • "alter function" statement for published article never finishes (infinite loop)
    ... I am new to SQL Server replication. ... object that is an article in a merge publication, ... Last night I left an "alter function" statement running, ... Microsoft SQL Server Management Studio, ...
    (microsoft.public.sqlserver.replication)
  • Re: Replication problems
    ... The error that you are getting regarding using a system account is fine as ... machine share which you can then reference in the publication wizard. ... > SQL Server Enterprise Manager could not retrieve information about the ...
    (microsoft.public.sqlserver.ce)