So you’ve finally got some shiny new Windows Phone 7 hardware and you want to plug it in and start testing the fart app you’ve been working on for the last 5 months. So how do you do it?
When it comes to unlocking your device Microsoft don’t exactly make it that obvious . Firstly if you try and deploy to a locked your phone you will get a deploy error message saying “Application launch failed. Ensure that the device screen is unlocked and device is developer unlocked. For details on developer unlock, visit http://go.microsoft.com/fwlink/?LinkId=195284”. Unfortunately the link they provide isn’t at all helpful – it just points to the AppHub home page.
What if you look at the “My Registered Devices” in the AppHub, may be that will tell you how to register a device? What you see there a message saying “The following devices have been registered and may be used to test your unpublished Windows Phone 7 applications. Adding additional devices must be accomplished through Visual Studio…“
Ok, so how do you register your phone in Visual Studio? … Turns out you can’t! You need to use a separate tool which is part of the Windows Phone Developer Tools and is nothing to do with Visual Studio. Great!
So here is what you need to do to unlock your phone for development:
1) Make sure you have registered as a developer on the AppHub and have paid your subscription.
2) Install the latest version of the Zune software.
2) Plug in your phone via USB and let Windows setup the drivers.
3) Lunch the Zune software and make sure that it picks up your device. The Zune software is the gateway to the device it will always need to be running for any software on your PC to be able to talk to the phone – including Visual Studio when you are debugging.
4) Next you need to unlock your device using the Windows Phone Developer Registration Tool which can be found in the Windows Phone Developer Tools folder of your Start Menu.
Enter the Live ID details for your AppHub account and click Register. After it has connected to AppHub and verified your details it should say “Your phone has successfully been registered.”.
NOTE: This process doesn’t unlock your phone immediately. It takes a little while for your phone to get the message that it is now unlocked – but usually less than a minute.
Now the phone is unlocked you should see it in the “My Registered Devices” of AppHub
Once that is all done you should be able to happily deploy your apps to your phone – but remember the Zune software always must be running in order to deploy to your device.
Come back for my next blog post on deploying your first app to a device.