Resources for IT Professionals > 論壇首頁 > SyncFx - SyncToy-File Synchronization > Exception during preview: Illegal Character
發問發問
 

問題Exception during preview: Illegal Character

  • Tuesday, 2 September, 2008 22:39BuzzLS 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     

     

    When synchronizing directories with Synctoy 2.0, I receive the following message: "Exception during preview: illegal character in path."   This cause the syncronization to stop.   It appeared to stop when it encountered *.tmp files beginning with a ~ character.   I searched and deleted all of these, and am having the same problem.   I am running Vista Home Premium x64.   Thanks in advance!

所有回覆

  • Wednesday, 3 September, 2008 2:58z_ashish解答者使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    This used to be a problem with SyncToy 1.4 which we resolved with 2.0. Can you please look for the error/exception information in the SyncToy log and put that in this post?

     

  • Wednesday, 3 September, 2008 14:23BuzzLS 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     

    Where do I find the error/exception log?

  • Wednesday, 3 September, 2008 16:37Deepa ChoundappanMSFT, 版主使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     

     

    Look under File->ViewLog.

     

    Thanks

    Deepa

  • Wednesday, 3 September, 2008 17:50BuzzLS 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     

    Here are the results of several runs:

     

    SYNC: 09/02/2008 16:29:27:824: -------------------------------------------------------------------------
    SYNC: 09/02/2008 16:29:27:873: Starting SyncToy, version 2.0.100.0, built 8/12/2008 2:07:12 PM.
    SYNC: 09/02/2008 16:45:27:315: -------------------------------------------------------------------------
    SYNC: 09/02/2008 16:45:27:318: Starting SyncToy, version 2.0.100.0, built 8/12/2008 2:07:12 PM.
    SYNC: 09/02/2008 16:46:06:878: Started scanning directory : S:\Cases\
    SYNC: 09/02/2008 16:46:06:879: Started scanning directory : L:\Cases\
    SYNC: 09/02/2008 16:46:08:421: Stopped scanning directory : S:\Cases\
    SYNC: 09/02/2008 16:46:25:974: Stopped scanning directory : L:\Cases\
    SYNC: 09/02/2008 16:47:02:443: *** Exception during preview: {0} :
     System.ArgumentException: Illegal characters in path.
       at Microsoft.Synchronization.CoreInterop.ISyncSession.Start(CONFLICT_RESOLUTION_POLICY resolutionPolicy, _SYNC_SESSION_STATISTICS& pSyncSessionStatistics)
       at Microsoft.Synchronization.KnowledgeSyncOrchestrator.DoOneWaySyncHelper(SyncIdFormatGroup sourceIdFormats, SyncIdFormatGroup destinationIdFormats, KnowledgeSyncProviderConfiguration destinationConfiguration, SyncCallbacks DestinationCallbacks, ISyncProvider sourceProxy, ISyncProvider destinationProxy, Int32& changesApplied, Int32& changesFailed)
       at Microsoft.Synchronization.KnowledgeSyncOrchestrator.DoOneWayKnowledgeSync(SyncProvider sourceProvider, SyncProvider destinationProvider, Int32& changesApplied, Int32& changesFailed)
       at Microsoft.Synchronization.KnowledgeSyncOrchestrator.Synchronize()
       at Microsoft.Synchronization.SyncOrchestrator.Synchronize()
       at SyncToy.SyncEngine.CreateAndStartSession(FileSyncProvider destinationProvider, FileSyncProvider sourceProvider)
       at SyncToy.SyncEngine.Run(Boolean previewMode)
       at SyncToyUI.PreviewDialog.PreviewOnePair(SyncEngine she)
    SYNC: 09/02/2008 16:47:02:445: *** Exception during preview: Illegal characters in path.
    SYNC: 09/02/2008 16:47:12:878: Started scanning directory : S:\Cases\
    SYNC: 09/02/2008 16:47:12:879: Started scanning directory : L:\Cases\
    SYNC: 09/02/2008 16:47:13:711: Stopped scanning directory : S:\Cases\
    SYNC: 09/02/2008 16:47:18:995: Stopped scanning directory : L:\Cases\
    SYNC: 09/02/2008 16:47:55:594: *** Exception during preview: {0} :
     System.ArgumentException: Illegal characters in path.
       at Microsoft.Synchronization.CoreInterop.ISyncSession.Start(CONFLICT_RESOLUTION_POLICY resolutionPolicy, _SYNC_SESSION_STATISTICS& pSyncSessionStatistics)
       at Microsoft.Synchronization.KnowledgeSyncOrchestrator.DoOneWaySyncHelper(SyncIdFormatGroup sourceIdFormats, SyncIdFormatGroup destinationIdFormats, KnowledgeSyncProviderConfiguration destinationConfiguration, SyncCallbacks DestinationCallbacks, ISyncProvider sourceProxy, ISyncProvider destinationProxy, Int32& changesApplied, Int32& changesFailed)
       at Microsoft.Synchronization.KnowledgeSyncOrchestrator.DoOneWayKnowledgeSync(SyncProvider sourceProvider, SyncProvider destinationProvider, Int32& changesApplied, Int32& changesFailed)
       at Microsoft.Synchronization.KnowledgeSyncOrchestrator.Synchronize()
       at Microsoft.Synchronization.SyncOrchestrator.Synchronize()
       at SyncToy.SyncEngine.CreateAndStartSession(FileSyncProvider destinationProvider, FileSyncProvider sourceProvider)
       at SyncToy.SyncEngine.Run(Boolean previewMode)
       at SyncToyUI.PreviewDialog.PreviewOnePair(SyncEngine she)
    SYNC: 09/02/2008 16:47:55:594: *** Exception during preview: Illegal characters in path.
    SYNC: 09/02/2008 17:06:46:671: Started scanning directory : L:\Cases\
    SYNC: 09/02/2008 17:06:46:672: Started scanning directory : S:\Cases\
    SYNC: 09/02/2008 17:06:48:230: Stopped scanning directory : S:\Cases\
    SYNC: 09/02/2008 17:07:03:064: Stopped scanning directory : L:\Cases\
    SYNC: 09/02/2008 17:08:32:180: *** Exception during preview: {0} :
     System.ArgumentException: Illegal characters in path.
       at Microsoft.Synchronization.CoreInterop.ISyncSession.Start(CONFLICT_RESOLUTION_POLICY resolutionPolicy, _SYNC_SESSION_STATISTICS& pSyncSessionStatistics)
       at Microsoft.Synchronization.KnowledgeSyncOrchestrator.DoOneWaySyncHelper(SyncIdFormatGroup sourceIdFormats, SyncIdFormatGroup destinationIdFormats, KnowledgeSyncProviderConfiguration destinationConfiguration, SyncCallbacks DestinationCallbacks, ISyncProvider sourceProxy, ISyncProvider destinationProxy, Int32& changesApplied, Int32& changesFailed)
       at Microsoft.Synchronization.KnowledgeSyncOrchestrator.DoOneWayKnowledgeSync(SyncProvider sourceProvider, SyncProvider destinationProvider, Int32& changesApplied, Int32& changesFailed)
       at Microsoft.Synchronization.KnowledgeSyncOrchestrator.Synchronize()
       at Microsoft.Synchronization.SyncOrchestrator.Synchronize()
       at SyncToy.SyncEngine.CreateAndStartSession(FileSyncProvider destinationProvider, FileSyncProvider sourceProvider)
       at SyncToy.SyncEngine.Run(Boolean previewMode)
       at SyncToyUI.PreviewDialog.PreviewOnePair(SyncEngine she)
    SYNC: 09/02/2008 17:08:32:180: *** Exception during preview: Illegal characters in path.
    SYNC: 09/02/2008 17:09:22:465: Started scanning directory : S:\Cases\
    SYNC: 09/02/2008 17:09:22:467: Started scanning directory : L:\Cases\
    SYNC: 09/02/2008 17:09:23:384: Stopped scanning directory : S:\Cases\
    SYNC: 09/02/2008 17:09:39:177: Stopped scanning directory : L:\Cases\
    SYNC: 09/02/2008 17:11:22:631: *** Exception during preview: {0} :
     System.ArgumentException: Illegal characters in path.
       at Microsoft.Synchronization.CoreInterop.ISyncSession.Start(CONFLICT_RESOLUTION_POLICY resolutionPolicy, _SYNC_SESSION_STATISTICS& pSyncSessionStatistics)
       at Microsoft.Synchronization.KnowledgeSyncOrchestrator.DoOneWaySyncHelper(SyncIdFormatGroup sourceIdFormats, SyncIdFormatGroup destinationIdFormats, KnowledgeSyncProviderConfiguration destinationConfiguration, SyncCallbacks DestinationCallbacks, ISyncProvider sourceProxy, ISyncProvider destinationProxy, Int32& changesApplied, Int32& changesFailed)
       at Microsoft.Synchronization.KnowledgeSyncOrchestrator.DoOneWayKnowledgeSync(SyncProvider sourceProvider, SyncProvider destinationProvider, Int32& changesApplied, Int32& changesFailed)
       at Microsoft.Synchronization.KnowledgeSyncOrchestrator.Synchronize()
       at Microsoft.Synchronization.SyncOrchestrator.Synchronize()
       at SyncToy.SyncEngine.CreateAndStartSession(FileSyncProvider destinationProvider, FileSyncProvider sourceProvider)
       at SyncToy.SyncEngine.Run(Boolean previewMode)
       at SyncToyUI.PreviewDialog.PreviewOnePair(SyncEngine she)
    SYNC: 09/02/2008 17:11:22:631: *** Exception during preview: Illegal characters in path.
    SYNC: 09/02/2008 17:19:48:763: -------------------------------------------------------------------------
    SYNC: 09/02/2008 17:19:48:765: Starting SyncToy, version 2.0.100.0, built 8/12/2008 2:07:12 PM.
    SYNC: 09/02/2008 17:19:56:781: Started scanning directory : L:\Cases\
    SYNC: 09/02/2008 17:19:56:781: Started scanning directory : S:\Cases\
    SYNC: 09/02/2008 17:19:58:507: Stopped scanning directory : S:\Cases\
    SYNC: 09/02/2008 17:20:12:413: Stopped scanning directory : L:\Cases\
    SYNC: 09/02/2008 17:21:50:793: *** Exception during preview: {0} :
     System.ArgumentException: Illegal characters in path.
       at Microsoft.Synchronization.CoreInterop.ISyncSession.Start(CONFLICT_RESOLUTION_POLICY resolutionPolicy, _SYNC_SESSION_STATISTICS& pSyncSessionStatistics)
       at Microsoft.Synchronization.KnowledgeSyncOrchestrator.DoOneWaySyncHelper(SyncIdFormatGroup sourceIdFormats, SyncIdFormatGroup destinationIdFormats, KnowledgeSyncProviderConfiguration destinationConfiguration, SyncCallbacks DestinationCallbacks, ISyncProvider sourceProxy, ISyncProvider destinationProxy, Int32& changesApplied, Int32& changesFailed)
       at Microsoft.Synchronization.KnowledgeSyncOrchestrator.DoOneWayKnowledgeSync(SyncProvider sourceProvider, SyncProvider destinationProvider, Int32& changesApplied, Int32& changesFailed)
       at Microsoft.Synchronization.KnowledgeSyncOrchestrator.Synchronize()
       at Microsoft.Synchronization.SyncOrchestrator.Synchronize()
       at SyncToy.SyncEngine.CreateAndStartSession(FileSyncProvider destinationProvider, FileSyncProvider sourceProvider)
       at SyncToy.SyncEngine.Run(Boolean previewMode)
       at SyncToyUI.PreviewDialog.PreviewOnePair(SyncEngine she)
    SYNC: 09/02/2008 17:21:50:795: *** Exception during preview: Illegal characters in path.
    SYNC: 09/02/2008 17:46:11:328: -------------------------------------------------------------------------
    SYNC: 09/02/2008 17:46:11:330: Starting SyncToy, version 2.0.100.0, built 8/12/2008 2:07:12 PM.
    SYNC: 09/02/2008 17:46:53:105: Started scanning directory : L:\Cases\
    SYNC: 09/02/2008 17:46:53:105: Started scanning directory : S:\Cases\
    SYNC: 09/02/2008 17:46:54:233: Stopped scanning directory : S:\Cases\
    SYNC: 09/02/2008 17:47:10:310: Stopped scanning directory : L:\Cases\
    SYNC: 09/02/2008 17:47:45:982: *** Exception during preview: {0} :
     System.ArgumentException: Illegal characters in path.
       at Microsoft.Synchronization.CoreInterop.ISyncSession.Start(CONFLICT_RESOLUTION_POLICY resolutionPolicy, _SYNC_SESSION_STATISTICS& pSyncSessionStatistics)
       at Microsoft.Synchronization.KnowledgeSyncOrchestrator.DoOneWaySyncHelper(SyncIdFormatGroup sourceIdFormats, SyncIdFormatGroup destinationIdFormats, KnowledgeSyncProviderConfiguration destinationConfiguration, SyncCallbacks DestinationCallbacks, ISyncProvider sourceProxy, ISyncProvider destinationProxy, Int32& changesApplied, Int32& changesFailed)
       at Microsoft.Synchronization.KnowledgeSyncOrchestrator.DoOneWayKnowledgeSync(SyncProvider sourceProvider, SyncProvider destinationProvider, Int32& changesApplied, Int32& changesFailed)
       at Microsoft.Synchronization.KnowledgeSyncOrchestrator.Synchronize()
       at Microsoft.Synchronization.SyncOrchestrator.Synchronize()
       at SyncToy.SyncEngine.CreateAndStartSession(FileSyncProvider destinationProvider, FileSyncProvider sourceProvider)
       at SyncToy.SyncEngine.Run(Boolean previewMode)
       at SyncToyUI.PreviewDialog.PreviewOnePair(SyncEngine she)
    SYNC: 09/02/2008 17:47:45:984: *** Exception during preview: Illegal characters in path.
    SYNC: 09/03/2008 09:20:46:628: -------------------------------------------------------------------------
    SYNC: 09/03/2008 09:20:46:632: Starting SyncToy, version 2.0.100.0, built 8/12/2008 2:07:12 PM.
    SYNC: 09/03/2008 09:20:51:205: Started scanning directory : S:\Cases\
    SYNC: 09/03/2008 09:20:51:205: Started scanning directory : L:\Cases\
    SYNC: 09/03/2008 09:20:58:266: Stopped scanning directory : S:\Cases\
    SYNC: 09/03/2008 09:21:01:559: Stopped scanning directory : L:\Cases\
    SYNC: 09/03/2008 09:21:36:608: *** Exception during preview: {0} :
     System.ArgumentException: Illegal characters in path.
       at Microsoft.Synchronization.CoreInterop.ISyncSession.Start(CONFLICT_RESOLUTION_POLICY resolutionPolicy, _SYNC_SESSION_STATISTICS& pSyncSessionStatistics)
       at Microsoft.Synchronization.KnowledgeSyncOrchestrator.DoOneWaySyncHelper(SyncIdFormatGroup sourceIdFormats, SyncIdFormatGroup destinationIdFormats, KnowledgeSyncProviderConfiguration destinationConfiguration, SyncCallbacks DestinationCallbacks, ISyncProvider sourceProxy, ISyncProvider destinationProxy, Int32& changesApplied, Int32& changesFailed)
       at Microsoft.Synchronization.KnowledgeSyncOrchestrator.DoOneWayKnowledgeSync(SyncProvider sourceProvider, SyncProvider destinationProvider, Int32& changesApplied, Int32& changesFailed)
       at Microsoft.Synchronization.KnowledgeSyncOrchestrator.Synchronize()
       at Microsoft.Synchronization.SyncOrchestrator.Synchronize()
       at SyncToy.SyncEngine.CreateAndStartSession(FileSyncProvider destinationProvider, FileSyncProvider sourceProvider)
       at SyncToy.SyncEngine.Run(Boolean previewMode)
       at SyncToyUI.PreviewDialog.PreviewOnePair(SyncEngine she)
    SYNC: 09/03/2008 09:21:36:609: *** Exception during preview: Illegal characters in path.

     

  • Wednesday, 3 September, 2008 20:41Deepa ChoundappanMSFT, 版主使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     

    To more clearly identify the folder in which this exception is being thrown - look under the directoy where SyncToy has been installed. There is a file called SyncToy.config. If you open this file - you will see a line that looks like this:

          <add name="SyncToyTraceLevel" value="Info" />

    Change this to

          <add name="SyncToyTraceLevel" value="Verbose" />

     

    After you do this - restart the SyncToy application and re run the sync. This time when you look in the log - you will see the names of the different directories as we are scanning them and you should be able to identify the exact directory that this fails on. You should look at the whole path and files under this path if you can see any different character that has the potential of being an illegal character.

     

    Thanks

    Deepa

  • Thursday, 4 September, 2008 21:44BuzzLS 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    Thanks for the reply.   How do I interpret the log?
  • Friday, 5 September, 2008 23:13Deepa ChoundappanMSFT, 版主使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     

    We print out each directory that we are beginning to scan. - so look to the end of the log at the last sync and see what is th elast subdirectory that was scanned - that is going to be the directory that had an illegal character in there.

     

    Thanks

    Deepa

     

  • Sunday, 7 September, 2008 4:06BuzzLS 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    Thanks.   I did check the last directory on my last scan and did not find any illegal characters.   I simplified the filenames and reran the sync, and continued to get errors.   The earlier version works fine in my XP machine so I'll make do with that for awhile.  I am away from my desktop for the next 9 days, so I will recheck and repost then if the problem continues to occur.

     

  • Wednesday, 10 September, 2008 17:59Deepa ChoundappanMSFT, 版主使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     

    Hi - I am looking through your exception stack above again and it does not look like it had to be the last directory. Clearly somewhere in your path there is a folder or file that has an invalid character in the path.

     

    The way to troubleshoot ( which could be time-consuming for you depending on your hierarchy) would be to sync individual folders till you hit the one causing the problem. The way to do this would be to use the "Exclude sub-folders" option on your folder pair and work your way down till you find the offending folder.

     

    Let us know if there anything else we can do to help.

     

    Thanks

    Deepa