Unable to run on a device, was working.

3 posts, 0 answers
  1. Jim
    Jim avatar
    5 posts
    Member since:
    Jan 2013

    Posted 31 May 2013 Link to this post

    Hello, run on device had been working fine. When I tried today it was no longer working. The device show up in the list, but when I select run on device nothing happens. There are error statements in the log:

    [2013-05-31 15-08-16-48] Log (Exception,High): System.ArgumentNullException: Value cannot be null.
    Parameter name: source
       at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate)
       at Telerik.BlackDragon.Client.Mobile.iOS.Deployment.iOSDeploymentHelper.ValidateDeviceAndApplicationIdentifier(IMobileDevice device, IMobileProject project, String& message)
       at Telerik.BlackDragon.Client.Mobile.iOS.Deployment.iOSDeploymentHelper.ValidateDeviceDeployment(IMobileDevice device, IMobileProject project, String& message)
       at Telerik.BlackDragon.Client.Mobile.iOS.Deployment.iOSDeploymentHelper.CanDeploy(IMobileDevice mobileDevice, IMobileProject mobileProject)
       at Telerik.BlackDragon.Client.ProjectTypes.MobileCore.ViewModels.RunOnDeviceViewModel.#GZc(IMobileDevice #47b)
       at lambda_method(Closure , Object )
       at #PYb.#BKb.#0f(Object #Vac)
       at Telerik.BlackDragon.Client.UI.ViewModels.Projections.ProjectionObject.TryGetMember(GetMemberBinder binder, Object& result)
       at CallSite.Target(Closure , CallSite , Object )
       at System.Dynamic.UpdateDelegates.UpdateAndExecute1[T0,TRet](CallSite site, T0 arg0)
       at Telerik.BlackDragon.Client.ProjectTypes.MobileCore.ViewModels.RunOnDeviceViewModel.#f1c(Object #I7b)
       at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate)
       at Telerik.BlackDragon.Client.ProjectTypes.MobileCore.ViewModels.RunOnDeviceViewModel.CanDeployOnAllDevices()
       at Telerik.BlackDragon.Client.ProjectTypes.MobileCore.Commands.DeployCommand.ExecuteCore()
       at Telerik.BlackDragon.Client.CommandModel.ParameterlessCommandBase.Execute()
       at Telerik.BlackDragon.Client.CommandModel.ParameterlessCommandBase.Execute(Object parameter)
       at Telerik.BlackDragon.Client.CommandModel.LazilyImportedCommand.Execute(Object parameter)
       at Telerik.BlackDragon.Client.UI.UICommandWrapper.Execute(Object parameter)
       at Telerik.Windows.Controls.RadMenuItem.ExecuteCommand()
       at Telerik.Windows.Controls.RadMenuItem.OnClickImpl()
       at Telerik.Windows.Controls.RadMenuItem.OnClick()
       at Telerik.Windows.Controls.RadMenuItem.HandleMouseUp()
       at Telerik.Windows.Controls.RadMenuItem.OnMouseLeftButtonUp(MouseButtonEventArgs e)
       at System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e)
       at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
       at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
       at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
       at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
       at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
       at System.Windows.Input.InputManager.ProcessStagingArea()
       at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
       at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
       at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
       at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

    Any advice would be appreciated.
    Jim Wangler
  2. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 31 May 2013 Link to this post

    Hello Jim,

    Go to the project properties -> iOS -> Code Signing Identity and make sure you select a development profile -> Save.

    Then go and select Run on Device again, it should work. Basically Run on Device is to be used only for development purpose and would only work with development signing identity. Clearly we could fail gracefully or be smarter and know which profile to use, this is already logged for improvement.

    Sorry for the temporary inconvenience.

    Regards,
    Steve
    Telerik

    Don't miss the Icenium May Release Keynote - sign up now!
    Share feedback and vote for features on our Feedback Portal.
  3. Jim
    Jim avatar
    5 posts
    Member since:
    Jan 2013

    Posted 31 May 2013 Link to this post

    That did it, thanks.

    I had published the app using a wildcard enterprise certificate, and it looks like that changed the settings in the project properties to that certificate.

    Yeah - that could be handled a little better in Icenium, but all in all a great tool...
    Thanks, Jim
Back to Top