Today without any reason VisualStudio was not able to connect with the WP7 device. When I selected “deploy solution” I received the following error:

------ Deploy started: Project: ...
Deploying D:\MyProjects2010\...
Deployment of application to device failed.
This operation returned because the timeout period expired.
========== Build: 2 succeeded or up-to-date, 0 failed, 0 skipped ==========
========== Deploy: 0 succeeded, 1 failed, 0 skipped ==========

Zune client was on.

Zune client seen the device.

Device was dev-unlocked.

Everything worked fine for weeks…

I don’t know why it happened, but I resolved doing the following steps:

  • Turn off PC
  • Turn off mobile
  • Remove and reinsert battery from mobile
  • Turn on PC
  • Turn on mobile
  • Visual Studio is able to connect with device again