You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Firstly thank you to @Mimetis for all your amazing help so far. I am posting a question in here so hopefully one of the other users may have had a similar issue and found a way to resolve it.
I have a .net core web api to sync from a local winforms client (standard .net) Sqlite database to a SQL Server database. The code in the windows client is as per the numerous examples on this site but simply...
var clientScope = await agentSync.LocalOrchestrator.GetClientScopeAsync();
var firstTimeSync = clientScope.IsNewScope;
var s1 = await agentSync.SynchronizeAsync(progress);
if (firstTimeSync)
{
await agentSync.LocalOrchestrator.UpdateUntrackedRowsAsync();
var s2 = await agentSync.SynchronizeAsync(progress); // This line is where the issue occurs
}
If I run the API under IIS Express on the local PC the code above in the windows client works perfectly. However when I deploy the API to the production server the process 'hangs' for want of a better description. I have a debug window where I provide the progress and it stops here. This chunk is in the second synchronizeAsync call as indicated above.
I have trawled numerous logs, tried wireshark and fiddler and nothing is providing any answers. Just to add to the confusion we have an iOS project developed using Xamarin and the same process works no problem. So the problem only seems to exist when synchronising from Windows to IIS (not IIS express).
I appreciate this is a long shot as I'm just hoping someone may have had a similar issue. Really want to use this fantastic project but if I can't resolve this issue soon I'll have to look at other options - and there aren't many. :)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Firstly thank you to @Mimetis for all your amazing help so far. I am posting a question in here so hopefully one of the other users may have had a similar issue and found a way to resolve it.
I have a .net core web api to sync from a local winforms client (standard .net) Sqlite database to a SQL Server database. The code in the windows client is as per the numerous examples on this site but simply...
If I run the API under IIS Express on the local PC the code above in the windows client works perfectly. However when I deploy the API to the production server the process 'hangs' for want of a better description. I have a debug window where I provide the progress and it stops here. This chunk is in the second synchronizeAsync call as indicated above.
31 %: [api.xxx.yyy.zzz] ChangesApplying HttpSendingClientChangesRequestArgs: Sending Batch Changes.Batches: (2 / 44).Rows: (26 / 1026).Waiting Server Response...
I have trawled numerous logs, tried wireshark and fiddler and nothing is providing any answers. Just to add to the confusion we have an iOS project developed using Xamarin and the same process works no problem. So the problem only seems to exist when synchronising from Windows to IIS (not IIS express).
I appreciate this is a long shot as I'm just hoping someone may have had a similar issue. Really want to use this fantastic project but if I can't resolve this issue soon I'll have to look at other options - and there aren't many. :)
Hopefully someone can help
Beta Was this translation helpful? Give feedback.
All reactions