Hi!
I had this problem with my Xperia M, and here is what worked for me:
there is an application that's called 'USB-connection' or something like, that's responsible for the USB communication on android.
From the settings you can access it's page, and see it running. I forced it to stop, then...