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

  • Home
  • SEARCH
  • 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 8595343
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T00:24:41+00:00 2026-06-12T00:24:41+00:00

I am currently developing a bridge between a database and a sql server database

  • 0

I am currently developing a bridge between a database and a sql server database android (sqlite).

To do this, I use a web service and filtered replications with sqlce databases stored on a server IIS 7. To develop this, I used IIS Express on my pc. Everything works fine on my pc but when deployed, replicated databases create a new subscription for each synchronization (while on IIS Express sync works without creating a new subscription), no exceptions are thrown, nothing.

I don’t understand why IIS 7 or IIS Express works in a different way to sync databases.

An idea of ​​the reason of the problem?

I use Sql replication ce 3.5 sp2, Sql server 2008 R2 as mother database, IIS7.

I tried to :
-Replicate motherdatabase with a little software on the webserver, it works.
-Use “SqlCeReplication.loadproperties” to find my sqlce database parameters to avoid the creation of the new subscription, it doesn’t work.

Other details :
-When it is not syncing for the first time, webservices don’t do “repl.AddSubscription(AddOption.CreateDatabase)”, I already check that.

Here is the code used to sync :

' Define the server, publication, and database names.
Dim repl As SqlCeReplication = Nothing
Try
    repl = New SqlCeReplication
    repl.Publisher = PublisherName
    repl.PublisherLogin = login
    repl.PublisherPassword = password
    repl.PublisherSecurityMode = SecurityType.DBAuthentication
    repl.PublisherDatabase = My.Settings.DBName
    repl.Publication = PublicationName
    repl.InternetUrl = "https://iis.mydomain.com:444/sql/sqlcesa35.dll"
    repl.InternetLogin = "sync"
    repl.InternetPassword = "dfssd"
    repl.Subscriber = "MobileApp - " & login
    repl.SubscriberConnectionString = "Data Source=" & My.Settings.folderDB + "\" + subscriptionName + ".sdf"
    If Not File.Exists(My.Settings.dossierBDD + "\" + subscriptionName + ".sdf") Then
        repl.AddSubscription(AddOption.CreateDatabase)
    End If
    repl.Synchronize()
Catch err As SqlCeException
Finally
    repl.Dispose()
    repl = Nothing
End Try

Thanks in advance

  • 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-06-12T00:24:43+00:00Added an answer on June 12, 2026 at 12:24 am

    I found myself the answer…
    I don’t really know why but if you want to do merge replication on sqlce, you will need to let the IIS website “Load the user profile” (on the application pool), otherwise subscription are created each time…

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

Sidebar

Related Questions

I currently developing an hotel web site and they use the iHotelier system. I
I am currently developing an mvc application to read from an existing sql server
Currently developing an application using the newest version of symfony, obtained through PEAR. This
I'm currently developing a web application based on jQuery Mobile. I would like to
I am currently developing a private framework for use on WebKit devices. I have
Im currently developing a chat client for the iphone. Server-side there is a node.js
I am currently developing a big web application. Users will be able to post
I'm currently developing server side to Application, in the App I have a lot
Im currently developing av price list using SQL Reporting Services. In that report I
I'm currently developing a web radio app and if the user presses the pause/stop

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.