将Windows Phone 8.1注册为开发人员设备

时间:2015-02-18 23:03:34

标签: windows-phone-8.1

我正在尝试从Microsoft Virtual Academy调试Windows Visual Studio示例项目,但我无法使用我的手机。我能够为Windows(通用应用程序)调试它,但对于我的手机,我无法运行模拟器或在手机上运行应用程序。我想让它在我的手机上工作,因为这是默认情况下可以使用的选项。

我尝试注册我的设备,但无法走得太远: Windows Phone Developer Registration

我已经完成了这个(电话8)other question并尝试了列出的每个解决方案(重新启动,停止并启动服务,甚至在设备管理器中禁用该设备)但它仍然无法正常工作。还有其他提示吗?

1 个答案:

答案 0 :(得分:0)

MSDN中找到解决方案。总的来说,我能够在我之后注册我的手机:

  1. 取下我的手机。
  2. 从“设备管理器”中的“通用串行总线设备”下卸载了四个设备(均标记为我的手机)。
  3. 手动删除密钥“HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Control \ usbflags \ 042106610100”(数字与我有诺基亚920匹配)
  4. 重新连接手机
  5. 较长的版本从MSDN复制并粘贴到下面,以防其他人遇到此问题。

    1. Open a command prompt and browse to this folder:
    
    C:\Program Files (x86)\Common Files\Microsoft Shared\Phone Tools\CoreCon\11.0\Bin
    
    Then run IpOverUsbEnum.exe (with the device unlocked!)
    
    2.Expected results:
    
    C:\Program Files (x86)\Common Files\Microsoft Shared\Phone Tools\CoreCon\11.0\Bi
     n>ipoverusbenum
     Partner:
       Container Id: 6C5585FD-8C32-587B-BBDE-3DB382497937
       Instance: USB\VID_0421&PID_0661&MI_01\6&2C0EBAFF&0&0001
       Name: RM-820|Nokia Lumia 920
       Guid: 00000011-6AE5-9FD1-0000-000000000000
     Partner Services listening at ports:
       Debugger 8888 -> 127.0.0.1:8888
       DeviceReg 27177 -> 127.0.0.1:27077
       Msvsmon 8016 -> 127.0.0.1:8016
       RPCSurrogate00 6610 -> 127.0.0.1:6510
       RPCSurrogate01 6611 -> 127.0.0.1:6511
       RPCSurrogate02 6612 -> 127.0.0.1:6512
       RPCSurrogate03 6613 -> 127.0.0.1:6513
       RPCSurrogate04 6614 -> 127.0.0.1:6514
       RPCSurrogate05 6615 -> 127.0.0.1:6515
       RPCSurrogate06 6616 -> 127.0.0.1:6516
       RPCSurrogate07 6617 -> 127.0.0.1:6517
       RPCSurrogate08 6618 -> 127.0.0.1:6518
       RPCSurrogate09 6619 -> 127.0.0.1:6519
       RPCSurrogate10 6620 -> 127.0.0.1:6520
       WPConManClient2Proxy 6891 -> 127.0.0.1:6791
       WPPingSirep 29819 -> 127.0.0.1:29819
       WPSirep 29917 -> 127.0.0.1:29817 
    
    If the output is as expected, most likely it’s not an IP Over USB issue.
    
    3. If it reports RPC Server Unavailable, most likely the service is indeed not running on the PC.
     4. If it reports no connected partners found:
     - check the phone is unlocked
     - check it is available in explorer to drag and drop files
     - verify whether the USB device (i.e. the Phone) has been correctly detected and installed. This step is not trivial as it requires looking up the USB device (i.e. the phone) in the registry.
    
    The following example is based on inspection in the registry (regedit) of an installed Nokia 920 device. If looking for a different device, the difference will be in the VID (Vendor ID, represented as VID_vvvv) and PID (Product ID, represented as PID_pppp).
    
    1) Inspect the DeviceInterfaceGUID value in the registry key indicated below. If the device failed to install, that value may be missing. Please note this is the interface 1 (MI_01), interface 2 is used by Nokia for something different.
    
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\VID_0421&PID_0661&MI_01\7&338e4600&1&0001\Device Parameters]
     "ExtPropDescSemaphore"=dword:00000001
     "DeviceInterfaceGUID"="{26fedc4e-6ac3-4241-9e4d-e3d4b2c5c534}"
    
    2) Inspect the usbflags\042106610100 key below. The osvc value is the relevant thing to look for, it won’t start with 01 if the device wasn’t recognized correctly:
    
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\042106610100]
     "osvc"=hex:01,42
     "SkipContainerIdQuery"=hex:01,00,00,00
    
    The long number, in this case 042106610100 was derived from the Vendor ID (0421), the Product ID (0661) and the revision number (0100) of the device.
     More USBFLAGS info:
    http://msdn.microsoft.com/en-us/library/windows/hardware/jj649944(v=vs.85).aspx
    
    The correct workaround, if these values are not correct, is to (1) uninstall the devices under “Universal Serial Bus Devices” from Device Manager, (2) remove the key “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\042106610100” manually (use that number only if it is the Nokia 920), and then attach the phone again.    
    
    Mark Chamberlain Sr. Escalation Engineer | Microsoft Developer Support | Windows Phone 7