Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7584417
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T18:54:56+00:00 2026-05-30T18:54:56+00:00

I have set up SQL Server 2008 R2 on a Windows Server 2008 machine

  • 0

I have set up SQL Server 2008 R2 on a Windows Server 2008 machine and have created a test database on it and a corresponding publication in order to use merge replication. I have set said publication to cater to SQL Server 2008 and SQL Server CE 3.1 subscribers. I have also installed and configured IIS 7 using this walkthrough.

I am developing a C# application on a different PC that is supposed to copy the data from the SQl Server 2008 R2 database and put it in a local SQL Server CE database via merge replication. However it fails miserably with the following error:

A first chance exception of type 'System.Data.SqlServerCe.SqlCeException' occurred in System.Data.SqlServerCe.dll
Internal error: HTTP header information is either corrupted or missing in the transport message. It could be a network transmission error or an IIS problem.

The HResult value by the way is 0x80072F76.

On the server side the IIS logs have the following to contribute;

CReplicationListenerWorker    , 2012/03/03 02:21:14.939, 3400,   174,  S2, INFO: =============== START PROCESSING REQUEST ==============
CategorizeRequest             , 2012/03/03 02:21:14.940, 3400,    93,  S1, ERROR: GetMessageListenerObject failed, hr = 0x80070057
CReplicationListenerWorker    , 2012/03/03 02:21:14.940, 3400,   261,  S2, WARN: CategorizeRequest failed, hr = 0x80004005.
CReplicationListenerWorker    , 2012/03/03 02:21:14.940, 3400,   262,  S2, WARN: Generating default web page.
CReplicationListenerWorker    , 2012/03/03 02:21:14.940, 3400,   396,  S2, INFO: =============== DONE PROCESSING REQUEST ===============

My code is this:

SqlCeReplication repl = new SqlCeReplication();
repl.InternetUrl = "https://winserver2008/SQLReplication/replisapi.dll";
repl.InternetLogin = "SQL";
repl.InternetPassword = "somepassword";
repl.Publisher = "WINSERVER2008";
repl.PublisherDatabase = "Test";            
repl.PublisherSecurityMode = SecurityType.DBAuthentication;
repl.Publication = "TestPublish";
repl.Subscriber = "Dev System";
repl.SubscriberConnectionString = "Data Source=" + dbFilePath;
repl.DistributorLogin = "SQL";
repl.PublisherLogin = "SQL";
repl.DistributorAddress = "192.168.232.128";

if (File.Exists(dbFilePath)) { 
    File.Delete(dbFilePath);
}
repl.AddSubscription(AddOption.CreateDatabase); //Create new db

try{
    repl.Synchronize();
} catch (SqlCeException e) {
    Console.WriteLine(e.Message + " - HResult: " + String.Format("{0:X}", e.HResult));
}

I’ve done some research and I could find only two reasons for getting this error. One is using a Microsoft ISA server with a specific setting enabled, which I’m not. The other is if the publisher and subscriber are using different versions of SQL Server CE drivers, which they do not. According to the registries both machines are on version 3.5.8080.0 (SQL Server CE 3.5 SP2).

How can I get this to work?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T18:54:57+00:00Added an answer on May 30, 2026 at 6:54 pm

    You cannot use replisapi.dll, this is for SQL Server to SQL Server websync, you must use sqlcesa35.dll – see this blog post: http://erikej.blogspot.com/2010/06/walkthrough-configuring-merge.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a SQL Server 2008 R2 Developer edition set up on a Windows
We have set up a Windows 2008 server with MS SQL 2005 (default instance),
I have set up the full-text search functionality in SQL Server 2008 express. This
I have two named instances of SQL Server 2008 and am trying to set
I have successfully set up FILESTREAM on my SQL 2008 server; however I've noticed
anyone have script or procedures to install SQL Server 2008 Express, set up the
I recently migrated a database from sql server 2005 to 2008 on windows server
I have account set up on SQL Server such that it uses my Windows
I'm trying to set up replication between a SQL Server 2008 R2 database and
I have two ASP.NET 4.0 test sites on a Windows 2008 server (IIS7) One

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.