Try/Catch not working for WP8 C# .NET with Azure Mobile Services
问题 I'm playing around with this block of code: try { mscvUser = imstUser .Where(User => User.Id == intId) .Take(1000) .ToCollectionView(); } catch(MobileServiceInvalidOperationException f){ MessageBox.Show(f.ToString()); } It works fine normally, but I've been deliberately disconnecting my Internet for testing purposes, and I keep hitting MobileServiceInvalidOperationException, but it won't catch it in that block; it throws it back to App.xaml.cs, breaks, and shuts down the app. 回答1: I think you