locked
Need help regarding "File Sync Provider" should work over HTTP RRS feed

  • Question

  • Hi All,

    I have an WPF application (client-server)..WCF service which deploys in server machine(internet)..We have a requirement, to download files from server machine using server path(http://IPaddress).

    Can any body know about "sync frame work(file sync provider)" provides features to connect over http(internet)..??

    Thanks,

    -Sarada

    Monday, June 20, 2011 5:00 AM

Answers

  • are you looking at synchronizing files based on incremental changes or are looking at a way to upload/download files?

    IMHO, you'de be better off writing the upload/download functionality with custom code rather than forcing the File Sync Provider to go thru HTTP. you just need to log the timestamps of your files every sync so you know if a file has changed or not.

    Thursday, July 14, 2011 8:05 AM

All replies

  • the FileSyncProvider doesnt support synching over http.

    you may want to check this out though: http://www.8bit.rs/blog/2010/04/an-update-to-remote-file-sync-using-wcf-and-msf/ 

    the link above contains an updated code of another blog sample. not complete though but one of the comments says he was able to complete it, so you may want to reach out to that guy.

    Monday, June 20, 2011 6:07 AM
  • Thanks for providing me the above link, and  I am already using that same one.

    but, my question is that .. do we need to use that code both ends(client and server) ?

    And also can I get some explanation how to use of those code components?


    Thanks n Regards, -Sharada
    Tuesday, July 5, 2011 5:24 AM
  • Hello Sharada,

    As JuneT said, FSP (the File Sync Provider) cannot directly enumerate changes using http.

    Can you describe you scenario more? Do you have files that reside on the server and are shared by multiple people? Does a client application download the file locally then make changes to it and then upload it back? Will you have multiple people making changes to it concurrently (leading to conflicts?). Have you considered using Sharepoint?

     

    sid

    Tuesday, July 12, 2011 5:00 PM
  • Hi,

    Do you have files that reside on the server and are shared by multiple people?
    we have files (Presentation files) on the server which will be downloaded by remote users to thier systems. The remote users cannot update the files (Presentation files) neither on the server nor on their machines. These files (Presentation files) are only for viewing purpose. But there is a requirement where in a different set of files (carry data) that take in data from client machines to the server (reverse sync or two way sync)


    Does a client application download the file locally then make changes to it and then upload it back?
    No, it does not do this with either the presentation files (as they are always only viewable) or the data carrying files (as the data carry files always come form client to the server)


    Will you have multiple people making changes to it concurrently (leading to conflicts?).Have you considered using Sharepoint?
    No there will be no multiple people making changes to the files concurrently. We had proposed sharepoint but the client expects the solution to work in an offline mode once the files are downloaded and the downloads to happen at once (i.e say there are 10 files on the server in a directory structure, all of them need to be downloaded if the root path is been given) and WebDAV was also not allowed

     


    Thanks n Regards, -Sharada
    Wednesday, July 13, 2011 8:43 AM
  • are you looking at synchronizing files based on incremental changes or are looking at a way to upload/download files?

    IMHO, you'de be better off writing the upload/download functionality with custom code rather than forcing the File Sync Provider to go thru HTTP. you just need to log the timestamps of your files every sync so you know if a file has changed or not.

    Thursday, July 14, 2011 8:05 AM
  • Hi,

    we are looking for incremental changes.


    Thanks n Regards, -Sharada
    Thursday, July 14, 2011 9:03 AM
  • As JuneT suggests, you should look for a way of doing this outside of the FileSyncProvider, either building custom providers or doing it in a simpler way.
    Tuesday, July 19, 2011 7:56 PM