So I had tried absolutely everything. I had all the above problems combined and i was litterally losing my mind cause NOTHING worked. (Iphone 3Gs, with IOS4 installed, latest itunes, Windows 7, Dell, problems started when upgrading to IOS4 and Itunes 9.0.1.) And I swear I tried everything everyone recommended in this (and many other) forums. Then I found this link:
http://chimac.net/2010/06/20/itunes-9-2-%E2%80%9Cthe-iphone-cannot-be-synced-a-d uplicate-file-name-was-specified-%E2%80%9D-appletoolbox-tools-and-fixes-for-mac- os-x-ipad-iphone-and-ipad/ and this is the only thing that has worked for me:
“Uninstalling all the components:
■Apple Application Support
■Apple Mobile Device Support
■Apple Software Update
■Bonjour
■iTunes
■Quicktime
and re-installing iTunes x64 did the trick. It´s working now!”
However, to clarify, before uninstalling the above programmes I deleted all Apps from itunes and my iphone (the apps tend to be the problem) and after uninstalling the above programmes I also deleted ALL apple files on my computer. Also hidden files such as C:/ -> Programdata -> Apple/apple computer etc. Litterally made sure I didn’t have any apple files whatsoever on the computer. Then I re-installed itunes, plugged my iphone (no backup, created new and unticked syncing). Then it started sync normally. I made sure I didn’t touch anything but let it do it’s job. Afterwards I started syncing music. That worked. So I started downloading apps again. Made sure not to download any dodgy. And now it works like charm. Few weeks later I downloaded some stupid ringtone app and same **** happened. I did the very same with my computer and it started working again. Pain in the *** cause you have to redownload everything, so just make sure you’ve backed up your contacts etc..