Freigeben über


Help! Can't unlock my Windows Phone 7, can't deploy my XAP file, or can't run my app!

Don't panic! Usually these issues are very easy to fix: 

1-Zune software isn't installed or wrong version:

Usually if this is the case, when you plug your phone's USB cable, Windows won't recognize it. Check if your Zune software is 04.07.1404.00 or above that.

2-Zune software detects the phone but it says it can't connect to it:

Look at windows device manager. If you find an "unknown device", right-click on it and try updating the driver. If this relates to Windows Phone 7, the driver can be found online and will be automatically downloaded.

3-Zune software detects my phone but I can't deploy my XAP from Visual Studio:

Remember you first need to register it using the "Windows Phone Developer Registration tool" (Start menu/Windows Phone Developer Tools).

4-Trying to use the Windows Phone Developer Registration Tool but doesn't connect to my Windows Phone 7:

Again, check the items 1 and 2. You need the right version of the Zune software and the USB driver must be right. Also remember the phone must be on and unlocked (the screen must not be asking for the password or off).

5-Windows Phone Developer Registration tool detects my phone but doesn't proceed after I put my Live ID information:

Likely scenario is that your Live ID isn't configured as a developer on https://create.msdn.com

Also check if there isn't a firewall blocking your internet access.

6-Visual Studio says I've reached an application limit and can't deploy my app:

There is a limit for how many apps you can sideload as a developer to a single device. If you reach this limit, just uninstall one of these apps from your phone and try again.

7-I don't have the source code, just the XAP and I need to sideload on my testing windows phone 7. How can I do it?

If you did install and configure everything as mentioned in the previous items, you can use the "Application Deployment" tool on Start Menu/Windows Phone  Development Tools.

8-My application runs fine on the emulator but when I run it on the device, it shuts down suddenly without any warnings. Why's that happening?

The most likely scenario is memory. Keep in mind the OS will shut down your app if it doesn't handle memory very well. Monitor when debugging and check the RAM usage. See if you are freeing up memory accordingly. Second most likely scenario is a .Net Exception not being handled. Try debugging it.

9-My application can't play any mp3 files. When I try it, it just fails:

Disconnect your phone from Zune. If it is connected, it won't play. Also check if the audio file is DRMed.

10-When my application uses the XNA library's media player to play a background music, it just quits unexpectedly:

If you build a Silverlight app and try to use XNA to play an audio file, you have to consider a few things. First, you'll have to deal with XNA's FrameworkDispatcher.Update method, like mentioned in this article: https://www.silverlightshow.net/items/Exploring-Silverlight-XNA-integration-on-Windows-Phone-7.aspx

Second, there are differences between DRMed and non DRMed songs. As a guideline, always call your play method within a try catch block and show a message to the user if you can't play the song explaining what is going on. Your application probably won't pass the certification if you don't do that!

Hope that helps :)

Comments

  • Anonymous
    October 15, 2010
    Thank you so much.  I have been trying to launch on my device for hours and visited many forums.  The start menu/dev tools location was all I needed.  If they only included that when they shipped the dev phones.  Thanks again.  The new phones are awesome by the way!!

  • Anonymous
    November 15, 2010
    Hi, I registered as a student at http://creator.msdn.com but when I try to unlock my WP7 for development I've got an error: Marketplace registration incomplete. Please return to the developer portal for more information. (ErrorCode:0x80043009) I shuted down my firewall, but it wasn't help. What is the problem? Best regards, Sergii.

  • Anonymous
    November 21, 2010
    Hi, when you look at your account at create.msdn, what is the current status? Did you pass the geotrust verification already?

  • Anonymous
    November 22, 2010
    Hi I'm also a student and have the same problem here. Do I have to upload a first application to be verified? I've heard something like this ... That would make not much sense, because a test on real hardware would be interresting before uploading ;-) Does anyone know something on this matter?

  • Anonymous
    November 22, 2010
    Guys, could you please send me your Live IDs (to my e-mail: mateusv@microsoft.com) so I can chase this up and see what is going on with your cases? Cheers, Mat

  • Anonymous
    December 01, 2010
    I'm also in this situation. I can't understand how a I could submit an app that has been not tested on a real device.

  • Anonymous
    December 06, 2010
    The comment has been removed

  • Anonymous
    December 07, 2010
    A very helpful list of potential issues but it still doesn't help! What port(s) should be open in the firewall? Jeff

  • Anonymous
    December 07, 2010
    I don't think it requires any special ports other than http/https. Sometimes you just have to try again to make it work. If problem persists, drop me an e-mail with your details (including your live ID) and I can open a support request.

  • Anonymous
    December 09, 2010
    Hi, Do students need to submit an application to the marketplace in order to register their WP7 as a Developer Phone? Best regards, Kyzer

  • Anonymous
    December 13, 2010
    Thanks Mat!  The Windows Phone App Hub really should make it more obvious how to unlock a developer phone.  I couldn't find it anywhere on that site, so thanks for pointing me to the installed developer tools.

  • Anonymous
    December 13, 2010
    Kyzer, depending on how your acct has been migrated, it may be necessary to publish a first XAP to get the account registered.

  • Anonymous
    January 06, 2011
    Hi Mat, I got a App Hub developer account through DreamSpark (student). I am getting the code above (ErrorCode:0x80043009) when I try to register a phone. Can you help ?

  • Anonymous
    January 06, 2011
    Yes I can help but I need you to send me an e-mail. My e-mail is above.

  • Anonymous
    January 10, 2011
    I've got the strange "Error communicating with the developer portal. Please set the correct date and time on the phone, check Internet connection and try again later (ErrorCode0x64)" I've checked everything (date and time, internet connection)... but nothing

  • Anonymous
    January 10, 2011
    Again, I can only help you if I know your e-mails. If you send me one I can try to help. Also, Miguel, this issue sometimes is fixed by just retrying a few times, happened with me too.

  • Anonymous
    January 20, 2011
    I also have the Errorcode: 0x80043009 when I try to make a developer Phone registration, should I send you an e-mail?

  • Anonymous
    January 21, 2011
    Hi MV, I am also unable to register my phone. I have created and acount on appshub and verified it using dreamspark. Now im trying to register it using Windows phone registration tool but im getting error message which reads "Error Communicating with developer portal. Please set the correct date and time on phone, check the internet connection and try again later(Error code:0x64)". My phone is connecting with PC perfectly and sybching as well.

  • Anonymous
    January 30, 2011
    Hi, Matteus I have an HTC Mozart Device, i suppose that my Windows Live ID is correctly registered on Developer Portal. My device connect correctly to Zune, but Windows Phone Registration Tool display thaw was unable to connect to windows phone. Thanks for any support.

  • Anonymous
    February 23, 2011
    sellner_joe@hotmail.com I dont want to upload a .XAP, even if its an empty one, just to be able to register my phone for testing.. Please correct kind sir. Thank you

  • Anonymous
    April 25, 2011
    Hi...is there any possibility of free registration where-in i can use the tools just install .XAP file in my HTC Mozart...just for a start as i am very new to this world......thanx...

  • Anonymous
    March 16, 2012
    I don't know if its that I had to upload things to run apps on my WP7, but I never had an issue. I'm a student, but I got my developer license not through DreamSpark, but through a promotion in Australia where students could get full dev accounts for free... I released 4 apps before Microsoft gave me a device, so they were all tested purely on the emulator. Since getting my Lumia 800, I've been testing the game I'm currently working on  on it and have encountered no problems and am nothing but thankful to Microsoft for the opportunity and the free software and hardware... Hoping you guys manage to sort it out :S

  • Anonymous
    August 02, 2016
    I just got my windows phone based k from my wife and I'm locked out and she doesn't remember the code she used so I'm locked out of the phone . How do I open it?