Thursday, April 14, 2011

Microsoft Sync Framework is not a mirroring technology

I think I got it wrong, I wanted to sync two folders by using Microsoft Sync Framework , so I downloaded their sample and it did a very good job of copying folder A content to folder B BUT after few minutes I saw that if altered the state of folder B (Like deleting a folder) than when doing the sync again the folder didn’t come back to life – apparently only changes that are detected on the source are applied to the target

 

Am I doing something wrong (coz according to the article the knowledge of the target and knowledge of the source is used to determine the payload that should be synced)?

Should I be disappointed or I simply expected something that is not intended to do?

* I don’t want to have two way sync (I want to mirror A to B)

Monday, April 11, 2011

Using Basic Authentication with Windows 7 and Windows Vista WebDAV Client

by default you cannot use WEBDAV folder in windows 7 or Windows Vista which are not using SSL, you might get the following error “The folder you entered does not appear to be valid. Please choose another” or “Invalid folder”

Luckily this behavior can be changed by editing HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WebClient\Parameters\BasicAuthLevel and changing its value to 2

values are:

0 - Basic authentication disabled
1 - Basic authentication enabled for SSL shares only
2 or greater - Basic authentication enabled for SSL shares and for non-SSL shares

you can just run this reg file for easier approach

More details here