none
Connecting to Windows Phone 7 Emulator

    Question

  • Hi,

    I've recently installed  Windows Phone 7 Developer Tools  on Visual Studio 2010 Ultimate RTM.
    The whole installation process went well and  "Silverlight for Windows Phone" now appears in the list
    of Installed Templates in Visual Studio 2010. So far so good...

    I first created a very simple Windows Phone 7 application. Nothing really fancy, only the very basic.
    The compilation process didn't display any error. So far so good...

    I tried to launch the application a few times (as Administrator...)
    in the Windows Phone Emulator, though everytime

    the Connecting to Windows Phone 7 Emulator...  loading process stalles and
    I always get the following error:

    "Connection failed because of invalid command line arguments".

    Any suggestion on how to fix this would be appreciated. Thank you.

    Thursday, June 17, 2010 7:11 PM

Answers

  •  Hi Mawashi,

    Does the same thing occur when you create a blank application and run it?

    Hopefully its just a faulty installation.

    Friday, June 18, 2010 1:54 AM
  •  

    This is a known on systems that had previous tools builds installed + uninstalled, you’ll have to manually delete the folder %LocalAppData%\Microsoft\Phone Tools in order to get the emulator to work again. 

    Let us know if this works for you.

    Thanks,

    Mike

    Friday, June 18, 2010 12:54 PM
  • Hi Mike & GoldDark,

    Thank's for your replies. I finally managed to make the emulator work.
    I downloaded and reinstalled the whole Windows Phone 7 installation files...
    I also noticed my PC was a little bit low on RAM so I boost it
    to 5 GB and that did the trick... Everything is working perfectly
    now... :)


     

    Sunday, June 20, 2010 5:12 PM

All replies

  •  Hi Mawashi,

    Does it work when you run it from Visual Studio 2010 Express for Windows Phone (which are installed with the Developer Tools package)?

     If so I would assume it's a problem with your installation of the Developer Tools and it's integration into VS2010 and you might  want to re-run the installation package.

    Also, what is the build number of your VS2010 Ultimate?

    GD

    Thursday, June 17, 2010 7:29 PM
  • Hi GoldDark,

    Hi GoldDark,

    Nope... It doesn't work either when I try to run the same application
    from Visual Studio 2010 Express for Windows Phone. The same thing happened...
    As I try to lauch the Windows Phone 7 application, the whole emulator frame will first
    appear on screen for a few seconds, then the frame would then dissappear
    leaving only the main black rectangle content

    Windows Phone Emulator
         Loading...

    Actually I don't believe the problem comes from Visual Studio 2010 RTM Ultimate (10.0.30319.1)
    itself but rather the Windows Phone 7 Developer Tools that might have not been installed properly.
    I guess I'll have to redownload and reinstall the VMX\vm_web.exe and see what happens.

     

    Thursday, June 17, 2010 9:03 PM
  •  Hi Mawashi,

    Does the same thing occur when you create a blank application and run it?

    Hopefully its just a faulty installation.

    Friday, June 18, 2010 1:54 AM
  •  

    This is a known on systems that had previous tools builds installed + uninstalled, you’ll have to manually delete the folder %LocalAppData%\Microsoft\Phone Tools in order to get the emulator to work again. 

    Let us know if this works for you.

    Thanks,

    Mike

    Friday, June 18, 2010 12:54 PM
  • Hi Mike,

    I deleted %LocalAppData%\Microsoft\Phone Tools folder
    manually as you said. I then created a new blank project...
    The emulator appeared on screen ... Same error...
    It still didn't work...

    connection failed because of invalid command-line arguments...

    So I don't know but I would rather go for a faulty installation in this case
    cause connecting to the Emulator in Windows Phone 7 is the one and only
    error issue I encountered with VS 2010.
    Everything working fine for other types of applications.

    Something must have screwed up during the VMX\vm_web.exe
    ~238MB file download and install process... I don't know...

    I guess I'll have to give it another shot on the download... :(

    Friday, June 18, 2010 2:15 PM
  • Hi Mike & GoldDark,

    Thank's for your replies. I finally managed to make the emulator work.
    I downloaded and reinstalled the whole Windows Phone 7 installation files...
    I also noticed my PC was a little bit low on RAM so I boost it
    to 5 GB and that did the trick... Everything is working perfectly
    now... :)


     

    Sunday, June 20, 2010 5:12 PM
  • So was it the RAM or the Installation that was the problem?

    Sunday, December 11, 2011 11:23 AM