I use CameraCaptureTask to invoke camera in my app. It works well for me most of times but ocassionally it hangs and CameraCaptureTask's show method does not invoke camera. When I checked the log it throws System.InvalidOperationException. Here is the stack trace:-
System.InvalidOperationException at Microsoft.Phone.Tasks.ChooserListener.RegisterChooser(IChooser chooser) at Microsoft.Phone.Tasks.ChooserBase`1.Show(Uri appUri, ParameterPropertyBag ppb) at Microsoft.Phone.Tasks.CameraCaptureTask.Show() at name.LatestBrowseMedia.AddMediaClick(Object sender, EventArgs e) at Microsoft.Phone.Shell.ApplicationBarItemContainer.FireEventHandler(EventHandler handler, Object sender, EventArgs args) at Microsoft.Phone.Shell.ApplicationBarIconButtonContainer.ClickEvent() at Microsoft.Phone.Shell.ApplicationBar.OnCommand(UInt32 idCommand, Boolean isButton) at Microsoft.Phone.Shell.Interop.NativeCallbackInteropWrapper.OnCommand(UInt32 idCommand, Boolean isButton)
My code simply makes show method call. Please help me out. Thanx in advance.....