Catastrophic Failure Error 0x1709
(Русский)ישראל (עברית)المملكة العربية السعودية (العربية)ไทย (ไทย)대한민국 (한국어)中华人民共和国 (中文)台灣 (中文)日本 (日本語) HomeLibraryLearnDownloadsForums Ask a question Quick access Forums home Browse forums users FAQ Search related threads Remove From My Forums Asked by: Error 0x1709: Catastrophic Failure Silverlight > Report a Silverlight Bug General discussion 0 Sign in to vote Hi, I'm receiving the following error frequently from end users, most of the time without a full stack trace but this time I have one: System.Exception: Catastrophic failure (Error 0x1709. Debugging resource strings are unavailable. See http://go.microsoft.com/fwlink/?linkid=106663&Version=4.0.60831.0&File=mscorrc.dll&Key=0x1709 0x8000FFFF (E_UNEXPECTED)) at MS.Internal.XcpImports.CheckHResult(UInt32 hr) at MS.Internal.XcpImports.Host_GetNavigationState() at System.Windows.Interop.SilverlightHost.OnNavigationStateChangedEventHandlerAdded() at System.Windows.Interop.SilverlightHost.add_NavigationStateChanged(EventHandler`1 value) at System.Windows.Navigation.Journal.InitializeNavigationState() at System.Windows.Navigation.Journal..ctor(Boolean useNavigationState) at System.Windows.Navigation.NavigationService.InitializeJournal() at System.Windows.Controls.Frame.Frame_Loaded(Object sender, RoutedEventArgs e) at MS.Internal.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex, Delegate handlerDelegate, Object sender, Object args) at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName) The error has occurred with clients ranging from Windows XP to 7, and IE/Firefox/Chrome. They are also using SL Version 4.0.60831.0. Does anybody have a clue or insight into how to fix this problem? It all seems internal to silverlight before any of my code executes. Chris Friday, October 14, 2011 12:05 AM Reply | Quote All replies 0 Sign in to vote at MS.Internal.XcpImports.Host_GetNavigationState() at System.Windows.Interop.SilverlightHost.OnNavigationStateChangedEventHandlerAdded() Hi, Catastrophic Failure is a common exceptionmessage when the Silverlight runtime don't know where the exact exception from the native/unmanaged codes, but that not means the issue comes from the native codes, mostly the fuse comes from the managed codes. According to the stacktrace, the issue due to the event,NavigationStateChanged, did you bind some event handle
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Why does this silverlight code get a “catastrophic failure” when https://social.msdn.microsoft.com/Forums/silverlight/en-US/4173096d-fe1f-4981-b666-257bf923a554/error-0x1709-catastrophic-failure?forum=silverlightbugs reading a BitmapImage out of IsolatedStorage? up vote 1 down vote favorite 1 In a Silverlight app, I save a Bitmap like this: public static void SaveBitmapImageToIsolatedStorageFile(OpenReadCompletedEventArgs e, string fileName) { using (IsolatedStorageFile isf = IsolatedStorageFile.GetUserStoreForApplication()) { using (IsolatedStorageFileStream isfs = new IsolatedStorageFileStream(fileName, FileMode.Create, isf)) { Int64 imgLen = (Int64)e.Result.Length; byte[] b = new byte[imgLen]; e.Result.Read(b, 0, b.Length); isfs.Write(b, 0, b.Length); isfs.Flush(); isfs.Close(); isf.Dispose(); } } } and http://stackoverflow.com/questions/2638111/why-does-this-silverlight-code-get-a-catastrophic-failure-when-reading-a-bitma read it back out like this: public static BitmapImage LoadBitmapImageFromIsolatedStorageFile(string fileName) { string text = String.Empty; using (IsolatedStorageFile isf = IsolatedStorageFile.GetUserStoreForApplication()) { if (!isf.FileExists(fileName)) return null; using (IsolatedStorageFile isoStore = IsolatedStorageFile.GetUserStoreForApplication()) { using (IsolatedStorageFileStream isoStream = isoStore.OpenFile(fileName, FileMode.Open)) { BitmapImage bitmapImage = new BitmapImage(); bitmapImage.SetSource(isoStream); return bitmapImage; // "Catastrophic Failure: HRESULT: 0x8000FFFF (E_UNEXPECTED))" } } } } but this always gives me a "Catastrophic Failure: HRESULT: 0x8000FFFF (E_UNEXPECTED))" error. I've seen this error before when I tried to read a png file off a server which was actually a text file, so I assume the Bitmap is not being saved correctly, I got the code here. Can anyone see how the BitmapImage is not being saved correctly? Or why it would be giving me this error? Update: When the BitmapImage is created, I see that the array of bytes that gets written is 1876 bytes long and they are all 0. Why would that be? c# silverlight isolatedstorage bitmapimage share|improve this question edited Apr 14 '10 at 14:29 asked Apr 14 '10 at 14:20 Edward Tanguay 62.6k233579884 add a comment| 1 Answer 1 active oldest votes up vote 1 down vote I got it to work but am unclear exactly why. I w
it out to be, but I thought I’d share anyway. I received the following error while working before breakfast, I’m blaming it on http://blogs.msmvps.com/kathleen/2010/03/09/silverlight-catastrophic-failure-message/ the lack of Wheaties in my system. ? e.ExceptionObject {System.Exception} Data: {System.Collections.ListDictionaryInternal} InnerException: Nothing Message: "Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))" StackTrace: " at MS.Internal.XcpImports.GetClassFullName(String coreClassName) at System.Windows.DependencyProperty.LookupAttachedCoreProperty(String propertyName) at System.Windows.PropertyPathParser.GetDpFromName(String name, Boolean namespaceMappingAvailable) at System.Windows.PropertyPathParser.ReadAttachedPropertyStepDescriptor(Boolean calledFromParser) at System.Windows.PropertyPathParser.ReadStepDescriptor(Boolean calledFromParser) at System.Windows.PropertyPathParser.Parse() at System.Windows.Data.Binding..ctor(String path, Boolean calledFromParser) at MS.Internal.FrameworkCallbacks.CreateBindingExtension(String constructorArgument, IntPtr& nativeOutValue)" catastrophic failure From searching the web I found a number of things that might cause this. Apparently it’s Siverlight 3’s way of saying “you confused me”. I didn’t find any issues relating to my problem, which happened to be on a date picker. I had this code: