Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SQL because it is being used by another process #1253

Open
dorathoto opened this issue Sep 27, 2024 · 1 comment
Open

SQL because it is being used by another process #1253

dorathoto opened this issue Sep 27, 2024 · 1 comment

Comments

@dorathoto
Copy link

I have a console program that will perform a Sync when it receives a signalR, but it says that the database is already open.

Yes, I use EntityFramework in my console project..

Dotmim.Sync.SyncException: '[InternalApplyChangesAsync]..[InternalApplyCleanErrorsAsync]..The process cannot access the file 'C:\Users....\dbo_Agendamentos_0000_SQLLocalTotem_ERRORS_rjc0yplu_f2y.json' because it is being used by another process.'

What should I do? Would just closing the connection first work?
use the SqlSyncChangeTrackingProvider()

@Mimetis
Copy link
Owner

Mimetis commented Sep 27, 2024

That's strange.
Are you able to produce a small example that can reproduce the bug ?

Seems you have a problem on accessing a file on disk, and not really the database

That's weird coz this file (indeed generated by DMS) is only used by DMS, internally...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants