Method not found: get_CurrentDirectory System.Environment RRS feed

  • Question

  • Hi all,

    I got this exception message when I try to sync file from the source folder to destination folder within Windows Mobile 6 os. Below are the code:

    FileSyncScopeFilter filter = null;
    filter =
    new FileSyncScopeFilter();



    filter.FileNameExcludes.Add( "*.lnk");  






    FileSyncProvider sourceReplica = null;

    sourceReplica = new FileSyncProvider(Guid.NewGuid(),@"\Temp1", filter, FileSyncOptions.None); //exception is thrown

    FileSyncProvider destReplica = null;
    destReplica = new FileSyncProvider(Guid.NewGuid(),@"\Temp", filter, FileSyncOptions.None); //same above if the above is common out


    SyncOrchestrator agent = new SyncOrchestrator(); 



    agent.LocalProvider = sourceReplica;

    agent.RemoteProvider = destReplica;

    agent.Direction = SyncDirectionOrder.Upload;


    However, if i run this code within Windows 7 os, it works fine.

    Does sync files service support Windows Mobile 6 platform?

    If I want to sync files from Windows Mobile 6 to a remote server, how can it be done?

    Thank you.



    Monday, March 1, 2010 7:38 PM


All replies