Unhandled exception has occured in your application

Discussions about syncing data via Bluetooth, Dropbox, FTP, and using CSWeb
Post Reply
mosbi
Posts: 23
Joined: April 8th, 2021, 4:13 am

Unhandled exception has occured in your application

Post by mosbi »

Good morning,
For more than a month, I can no longer download my data stored on the CSWeb server.
For information, my database contains about 65000 records.
Each time I try to download the data with Data Viewer, an error window pops up as shown in the screenshot attached to my message.
Please find also attached to my message, the sync.log file

I hope that CSPro members will be able to clearly locate my problem and offer me, failing a definitive solution, a workaround or any other alternative to recover my data.
Thanks.

Below is the content of the message:
======================================================================================================================
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.Runtime.InteropServices.SEHException (0x80004005): External component has thrown an exception.
at SyncClient.syncData(SyncClient* , SyncDirection , ISyncableDataRepository* , CStringT<wchar_t\,StrTraitMFC_DLL<wchar_t\,ATL::ChTraitsCRT<wchar_t> > >* )
at CSPro.Sync.SyncClient.syncData(SyncDirection direction, DataRepository repository, String universe, IProgress`1 progressPercent, IProgress`1 progressMessage, ValueType cancellationToken, OnSyncError onError)
at DataViewer.Synchronizer.<>c__DisplayClass4_0.<SyncDataAsync>b__0()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at DataViewer.Synchronizer.<DownloadAsync>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at DataViewer.DownloadDialog.<buttonDownload_Click>d__16.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__6_0(Object state)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4150.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
DataViewer
Assembly Version: 7.6.0.0
Win32 Version: 7.6.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/CSPro%207.6/DataViewer.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4150.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4110.0 built by: NET48REL1LAST_B
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3761.0 built by: NET48REL1
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
zDataCLR
Assembly Version: 7.6.0.0
Win32 Version:
CodeBase: file:///C:/Program%20Files%20(x86)/CSPro%207.6/zDataCLR.DLL
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3761.0 built by: NET48REL1
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4121.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3761.0 built by: NET48REL1
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
zDictCLR
Assembly Version: 7.6.0.0
Win32 Version:
CodeBase: file:///C:/Program%20Files%20(x86)/CSPro%207.6/zDictCLR.DLL
----------------------------------------
Accessibility
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3761.0 built by: NET48REL1
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
zUtilCLR
Assembly Version: 7.6.0.0
Win32 Version:
CodeBase: file:///C:/Program%20Files%20(x86)/CSPro%207.6/zUtilCLR.DLL
----------------------------------------
zSyncCLR
Assembly Version: 7.6.0.0
Win32 Version:
CodeBase: file:///C:/Program%20Files%20(x86)/CSPro%207.6/zSyncCLR.DLL
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
===========================================================================================
Attachments
sync.log
(635.86 KiB) Downloaded 148 times
Unhandled exception has occured in your application.JPG
Unhandled exception has occured in your application.JPG (85.93 KiB) Viewed 4325 times
sherrell
Posts: 397
Joined: April 2nd, 2014, 9:16 pm
Location: Washington, DC

Re: Unhandled exception has occured in your application

Post by sherrell »

Hi Mosbi,

It’s likely that you might have cases with the partial save set for the case but with no partial save field. See if Savy's reply to this similar post helps:

viewtopic.php?p=15782

Sherrell
mosbi
Posts: 23
Joined: April 8th, 2021, 4:13 am

Re: Unhandled exception has occured in your application

Post by mosbi »

Effectively,
the solution was found in the topic viewtopic.php?p=15782
I actually ran the SQL query:

Code: Select all

UPDATE `<dictionary name>` SET `partial_save_mode`= NULL WHERE (`partial_save_mode` = 'modify' OR `partial_save_mode` = 'add') AND `partial_save_field_name` is NULL;
in my MySQL database and exporting data no longer generates an error.

THANKS.
Post Reply