SynchToy 1.4 .NET Exception

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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

************** Exception Text **************
System.ArgumentOutOfRangeException: Ticks must be between
DateTime.MinValue.Ticks and DateTime.MaxValue.Ticks.
Parameter name: ticks
at System.DateTime..ctor(Int64 ticks)
at
System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadDateTime()
at
System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadValue(InternalPrimitiveTypeE code)
at
System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadMemberPrimitiveUnTyped()
at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.Run()
at
System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler
handler, __BinaryParser serParser, Boolean fCheck, IMethodCallMessage
methodCallMessage)
at
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream
serializationStream, HeaderHandler handler, Boolean fCheck,
IMethodCallMessage methodCallMessage)
at
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream)
at SyncToyUI.SyncToyUIForm.LoadOnePair(IFormatter formatter, Stream
configFile)
at SyncToyUI.SyncToyUIForm.LoadPairs()
at SyncToyUI.SyncToyUIForm.SyncToyUIForm_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase:
file:///c:/windows/microsoft.net/framework/v1.1.4322/mscorlib.dll
----------------------------------------
System
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase:
file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
SyncToy
Assembly Version: 1.1.0.74
Win32 Version: 1.1.0.74
CodeBase: file:///C:/Program%20Files/Microsoft/SyncToy/SyncToy.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase:
file:///c:/windows/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c561934e089/system.windows.forms.dll
----------------------------------------
System.Drawing
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase:
file:///c:/windows/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll
----------------------------------------
SyncToyEngine
Assembly Version: 1.1.0.74
Win32 Version: 1.1.0.74
CodeBase: file:///C:/Program%20Files/Microsoft/SyncToy/SyncToyEngine.DLL
----------------------------------------
System.Xml
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase:
file:///c:/windows/assembly/gac/system.xml/1.0.5000.0__b77a5c561934e089/system.xml.dll
----------------------------------------

************** JIT Debugging **************
To enable just in time (JIT) debugging, the config file for this
application or machine (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 machine
rather than being handled by this dialog.
 
I receive the same error during a scheduled SyncToy run. It does not happpen
when I run SyncToy from the start menu.
After the error is thrown, by clicking continue on the .Net exception
screen, Synctoy runs, but all my original folder pairs are lost. Luckily, I
have a backup, so I restored the SyncToyDirPairs.bin file in My
Documents\SyncToyData\ and they were back.
I'm going to try flushing the other files in this directory (making a
backup first of course) in case the data files storing the file differences
are somehow responsible.

-owen
 
I noticed that the exception lists version 1.2 of the SyncToyEngine.dll (1.1
in your case paul). I checked the path of SyncToy from my Start Menu, the
one placed here by the 1.4 installer, and noticed it points to
C:\Documents and Settings\USERNAME\Local Settings\Application Data\SyncToy\

The previous install, SyncToy 1.2, placed SyncToy in
C:\Program Files\Microsoft\SyncToy

The files there were not updated by the 1.4 installer, and hence the
scheduled task was trying to run with version 1.2, and using the data files
created by SyncToy 1.4.. bad news. I simplied copy the contents of the first
folder in LocalSets\AppData\Synctoy to the progfiles\synctoy directory, and
my scheduled tasks ran as they should without errors or corruption.

-owen
 
Back
Top