1

我正在使用共享类在 Win 8 应用程序和 Win Phone 8 应用程序中创建 NFC 连接。当我运行应用程序时,我在 Windows.Networking.Proximity.PeerFinder.Start(); 行中收到以下错误。在电话应用程序中显示的错误如下:

任何想法为什么我会收到此错误?我在 Windows 8 应用程序中没有收到此错误。我在这里遵循示例:http: //msdn.microsoft.com/en-us/library/windows/apps/xaml/Hh465205 (v=win.10).aspx

System.ArgumentException was unhandled by user code
HResult=-2147024809
Message=Value does not fall within the expected range.
Source=Windows
StackTrace:
   at Windows.Networking.Proximity.PeerFinder.Start()
   at NFCTabApp.PeerConnector.AdvertiseForPeers()
   at NFCPhoneApp.MainPage.AdvertiseForPeersButton_Click(Object sender, RoutedEventArgs e)
   at System.Windows.Controls.Primitives.ButtonBase.OnClick()
   at System.Windows.Controls.Button.OnClick()
   at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
   at System.Windows.Controls.Control.OnMouseLeftButtonUp(Control ctrl, EventArgs e)
   at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName)
InnerException:
4

0 回答 0