代码改变世界

又悲剧了!!!!Connection failed because of invalid command-line arguments错误排查

2010-05-08 00:34  Aga.J  阅读(3524)  评论(2编辑  收藏  举报

 本来把我在使用windows phone部署时的错误排查翻译好了,结果在点击下面“网站分类”的“windows mobile”时,习惯性的点击windows mobile名字,而不是点前面的复选框,结果给我一个提示框问我要不要跳转,我一没留神就按了确定,结果全没了,强烈建议在跳转的时候加上保存为草稿啊!!!!!!!!!!!!!

 下面没心情翻译了,直接复制粘贴了

Please use this Troubleshooter if you are having problems getting the Windows Phone Emulator to launch or if the emulator is running slowly.

Deploying to the emulator is failing or hanging
Note that if the emulator fails with: "Connection failed because of invalid command-line arguments", this error is in reality occurring because the emulator is unable to launch. Try the following workarounds in the order indicated:

1.      Verify that your system meets the system requirements as indicated in the Release Notes here.

2.      Verify that you have at least 1.5GB of system memory available to launch the emulator.  Note that the stated minimum system requirement is 2GB. Since you are running the Emulator on your development system, consider that your system also requires enough memory to accommodate your other development tools. Therefore, depending on how you use your computer, consider installing more than 2GB of system memory.

3.      Verify you do not have older versions of Windows Mobile emulators installed on your computer (such version 5.x or 6.x emulators). Uninstall them if they are present, and then reboot.

4.      Confirm you are not running from within a Virtual Machine as this is not a supported scenario for the CTP release.

5.      If you have just installed the Tools but have not rebooted yet, try rebooting first to see if that fixes the problem.

6.      Try setting VS2010 to launch as Administrator. Here is the procedure. Make sure you are logged in as Administrator. Right click on Microsoft Visual Studio 2010 Express for Windows Phone, choose Properties, click on the Compatibility tab and turn on the check box for "Run this program as an Administrator". Make sure you are logged in as Administrator and then re-launch Visual Studio.

7.      Try manually launching the emulator with no command line arguments; look for emulator launch error messages (normally you will only see a help window). If instead you see an error message then please report any error details to this forum thread.

8.      Close Visual Studio and other memory hungry applications, and then try manually launching only the emulator, including the path to the .bin as a command line argument:

On an X86 based system:

"C:\Program Files\Microsoft XDE\1.0\XDE.exe" "C:\Program Files\Microsoft SDKs\WindowsPhone\v7.0\Emulation\Images\WM70C1.bin"

On X64:

"C:\Program Files (X86)\Microsoft XDE\1.0\XDE.exe" "C:\Program Files (x86)\Microsoft SDKs\WindowsPhone\v7.0\Emulation\Images\WM70C1.bin"

If the above technique is successful in launching the emulator, this suggests that the original failure was due to insufficient free memory.

9.      Please ensure that other virtualization software is not being used on the same computer. This CTP (pre-beta) release is not compatible with VMWare or other third party virtual machine software. For example, third party virtualization software may interfere with or replace the Virtual Machine Manager (VMM) service used by the Windows Phone Emulator.

10.   Verify that the VMM service is running.  At a command prompt, type “sc query vmm” and you should see something like this:

SERVICE_NAME: vmm

TYPE               : 1  KERNEL_DRIVER

STATE              : 4  RUNNING

                           (STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)

WIN32_EXIT_CODE    : 0  (0x0)

SERVICE_EXIT_CODE  : 0  (0x0)

CHECKPOINT         : 0x0

WAIT_HINT          : 0x0

If the service is stopped, try removing third party VMM software, and then you may need to restart the Microsoft VMM service from a command prompt using “sc start vmm”.

11.   The Emulator has not been tested with the Atom processor, which is used in a number of Netbook PCs. Also, since there will likely be slow emulator performance issues when using the Atom, consider development using the Emulator in a computer that does not use the Atom.

12.   If your computer has a history of multiple installations of Tools, antivirus software etc., consider rebuilding your system with a clean operating system installation.

If the above steps do not help, then please reply to this thread and supply the following information obtained by running DXDIAG from a command prompt:

·        Computer system model and processor type

·        Video device model manufacturer and name

·        Amount of installed physical memory

Maximizing Emulator Performance

·        Ensure that your computer has a minimum of 2GB of system memory. If you have other applications or tools running, consider closing them when using the emulator to ensure there is sufficient free system memory available.

·        Use a computer that has “hardware virtualization technology” indicated in its BIOS setup screen (this is the technology used to enable Virtual PC etc.). And then you must ensure that the feature is turned on in the BIOS. More information here:

Support: Configure BIOS for Hardware Assisted Virtualization (HAV) PCs

·        As indicated in the Release Notes here, use a high performance DirectX 10 capable card with a WDDM 1.1 driver that can take advantage of GPU acceleration on Windows Phone Emulator. Ensure that you are using the very latest driver from the video card manufacturer.

In order to review your computer hardware capabilities, run DXDIAG from a command-line window. From the System tab, confirm DirectX 10 or greater. From the Display tab, in Drivers box, confirm DDI Version 10 and above, and Driver model WDDM 1.1 or greater.

It is more likely that your video card supports these features if the installed operating system is Windows 7.

·        To verify whether Hardware Acceleration is working, create a default windows phone Silverlight application and include the following in your MainPage() method:

Application.Current.Host.Settings.EnableFrameRateCounter = true;

If you see at the top left an overlay showing 5 sets of counters this indicates that your emulator is using hardware acceleration.

·        You can get some performance improvement by reducing the zoom level of the emulator.  Click on the “wrench” icon to choose the zoom level.

 

If your hardware or drivers do not meet the minimum requirements for optimized performance:

·        Refer to the web site of the manufacturer of your driver card.  See if a newer driver is available.

·        Consider upgrading your video driver.

·        Consider installing the Windows Phone 7 Developer Tools in a higher performance computer.

Thank you!

原文请见:http://social.msdn.microsoft.com/Forums/en-US/windowsphone7series/thread/c4754ebd-f688-4c33-972a-a578b9db12ff