Giter Site home page Giter Site logo

Comments (12)

Mimetis avatar Mimetis commented on June 19, 2024 1

No Idea
Best solution is to create a sample reproduction solution, that I can use to debug

from dotmim.sync.

Mimetis avatar Mimetis commented on June 19, 2024 1

plz create a github repository

from dotmim.sync.

sojan1 avatar sojan1 commented on June 19, 2024

@Mimetis any idea what the error is?

Sample app with No Authentication - It works perfectly with the same database that is provisioned with no authentication.
Sample app with Authentication - i can see that the client's provisioning tables getting synchronized, but data is not synced.

With authentication
image

Without authentication
image

from dotmim.sync.

sojan1 avatar sojan1 commented on June 19, 2024

Hi @Mimetis
Please see the attached.

[HelloWebAuthSyncClient.zip]
[HelloWebAuthSyncServer.zip]
[Other Files.zip]

from dotmim.sync.

sojan1 avatar sojan1 commented on June 19, 2024

Hi @Mimetis

github.com/sojan1/Dotmim.Sync.Samples

from dotmim.sync.

Mimetis avatar Mimetis commented on June 19, 2024

Please create a repository with your sample only.
What should I do with a repository with ALL THE DMS SAMPLES ?

from dotmim.sync.

sojan1 avatar sojan1 commented on June 19, 2024

Hi

i have removed all other samples and uploaded again
github.com/sojan1/Dotmim.Sync.Samples1

from dotmim.sync.

Mimetis avatar Mimetis commented on June 19, 2024

link is not working
last link still the same

from dotmim.sync.

sojan1 avatar sojan1 commented on June 19, 2024

i am so sorry for that.
The repository was defaulted to private when uploaded from Visual Studio
i have tested the latest version and have also confirmed that it is a public

https://github.com/sojan1/Dotmim.Sync.Samples2

from dotmim.sync.

sojan1 avatar sojan1 commented on June 19, 2024

@Mimetis , Hi, have you had a chance to see the error?

from dotmim.sync.

Mimetis avatar Mimetis commented on June 19, 2024

In the sample you provided, you forgot to add tables to your SyncSetup instance:

// [Required]: Get a connection string to your server data source
var connectionString = Configuration.GetSection("ConnectionStrings")["SqlConnection"];

// Set the web server Options
var options = new SyncOptions
{
    BatchDirectory = Path.Combine(SyncOptions.GetDefaultUserBatchDirectory(), "server")
};

// ADD TABLES !!!!!!!!!!!!!!!!!!!!
var setup = new SyncSetup();
// ADD


var provider = new SqlSyncChangeTrackingProvider(connectionString);


services.AddSyncServer(provider, setup, options, null);

Before testing, be sure you are using a fresh server / client database
My advice, for any test, be sure you have provision correctly your database.

Last thing, your sample is not running correctly and is not raising the issue you are mentionning.
Please do the effort to provider a clean sample I can use to reproduce your error, otherwise I will not be able to help you.

from dotmim.sync.

sojan1 avatar sojan1 commented on June 19, 2024

provisioning is already done for the database. So should i again have the tables added in the SyncSetup().
i am already synching the other examples with the hub using the same code above.

from dotmim.sync.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.