2012-03-13 4 views
3

Je reçois l'exception suivante lors de la navigation vers une page dans mon application Silverlight de Windows Phone 7.1. Qu'est-ce que cela signifie, et comment puis-je résoudre cela?Téléphone Windows 7 FileNotFoundException System.Windows.debug.resources

System.IO.FileNotFoundException occurred 
Message=File or assembly name 'System.Windows.debug.resources, Version=2.0.5.0, Culture=en-US, PublicKeyToken=7cec85d7bea7798e', or one of its dependencies, was not found. 
StackTrace: 
    at System.ThrowHelper.throwVersion37CompatException(ExceptionType newEType, String newString, ExceptionType oldEType, String oldString) 
    at System.Reflection.Assembly.Load(String assemblyString) 
    at System.Windows.Resx..ctor() 
    at System.Windows.Resx.GetLoader() 
    at System.Windows.Resx.GetStringHelper(String name) 
    at System.Windows.Resx.GetString(String name) 
    at System.Windows.PropertyAccessPathStep.ConnectToPropertyInSource(Boolean isSourceCollectionViewCurrentItem) 
    at System.Windows.PropertyAccessPathStep.ConnectToProperty() 
    at System.Windows.PropertyAccessPathStep.ReConnect(Object newSource) 
    at System.Windows.PropertyPathListener.ReConnect(Object source) 
    at System.Windows.Data.BindingExpression.SourceAcquired() 
    at System.Windows.Data.BindingExpression.System.Windows.IDataContextChangedListener.OnDataContextChanged(Object sender, DataContextChangedEventArgs e) 
    at System.Windows.Data.BindingExpression.DataContextChanged(Object sender, DataContextChangedEventArgs e) 
    at System.Windows.FrameworkElement.OnDataContextChanged(DataContextChangedEventArgs e) 
    at System.Windows.FrameworkElement.OnAncestorDataContextChanged(DataContextChangedEventArgs e) 
    at System.Windows.FrameworkElement.NotifyDataContextChanged(DataContextChangedEventArgs e) 
    at System.Windows.FrameworkElement.OnAncestorDataContextChanged(DataContextChangedEventArgs e) 
    at System.Windows.FrameworkElement.NotifyDataContextChanged(DataContextChangedEventArgs e) 
    at System.Windows.FrameworkElement.OnTreeParentUpdated(DependencyObject newParent, Boolean bIsNewParentAlive) 
    at System.Windows.DependencyObject.UpdateTreeParent(IManagedPeer oldParent, IManagedPeer newParent, Boolean bIsNewParentAlive, Boolean keepReferenceToParent) 
    at MS.Internal.FrameworkCallbacks.ManagedPeerTreeUpdate(IntPtr oldParentElement, IntPtr parentElement, IntPtr childElement, Byte bIsParentAlive, Byte bKeepReferenceToParent, Byte bCanCreateParent) 
    at MS.Internal.XcpImports.Measure_WithDesiredSizeNative(IntPtr element, Single inWidth, Single inHeight, Single& outWidth, Single& outHeight) 
    at MS.Internal.XcpImports.UIElement_Measure_WithDesiredSize(UIElement element, Size availableSize) 
    at System.Windows.UIElement.Measure_WithDesiredSize(Size availableSize) 
    at System.Windows.Controls.VirtualizingStackPanel.MeasureChild(UIElement child, Size layoutSlotSize) 
    at System.Windows.Controls.VirtualizingStackPanel.MeasureOverride(Size constraint) 
    at System.Windows.FrameworkElement.MeasureOverride(IntPtr nativeTarget, Double inWidth, Double inHeight, Double& outWidth, Double& outHeight) 
    at MS.Internal.XcpImports.MeasureOverrideNative(IntPtr element, Single inWidth, Single inHeight, Single& outWidth, Single& outHeight) 
    at MS.Internal.XcpImports.FrameworkElement_MeasureOverride(FrameworkElement element, Size availableSize) 
    at System.Windows.FrameworkElement.MeasureOverride(Size availableSize) 
    at System.Windows.Controls.ScrollContentPresenter.MeasureOverride(Size constraint) 
    at System.Windows.FrameworkElement.MeasureOverride(IntPtr nativeTarget, Double inWidth, Double inHeight, Double& outWidth, Double& outHeight) 
    at MS.Internal.XcpImports.MeasureNative(IntPtr element, Single inWidth, Single inHeight) 
    at MS.Internal.XcpImports.UIElement_Measure(UIElement element, Size availableSize) 
    at System.Windows.UIElement.Measure(Size availableSize) 
    at System.Windows.Controls.ScrollViewer.MeasureOverride(Size constraint) 
    at System.Windows.FrameworkElement.MeasureOverride(IntPtr nativeTarget, Double inWidth, Double inHeight, Double& outWidth, Double& outHeight) 
    at MS.Internal.XcpImports.MeasureOverrideNative(IntPtr element, Single inWidth, Single inHeight, Single& outWidth, Single& outHeight) 
    at MS.Internal.XcpImports.FrameworkElement_MeasureOverride(FrameworkElement element, Size availableSize) 
    at System.Windows.FrameworkElement.MeasureOverride(Size availableSize) 
    at System.Windows.FrameworkElement.MeasureOverride(IntPtr nativeTarget, Double inWidth, Double inHeight, Double& outWidth, Double& outHeight) 
    at MS.Internal.XcpImports.MeasureOverrideNative(IntPtr element, Single inWidth, Single inHeight, Single& outWidth, Single& outHeight) 
    at MS.Internal.XcpImports.FrameworkElement_MeasureOverride(FrameworkElement element, Size availableSize) 
    at System.Windows.FrameworkElement.MeasureOverride(Size availableSize) 
    at System.Windows.FrameworkElement.MeasureOverride(IntPtr nativeTarget, Double inWidth, Double inHeight, Double& outWidth, Double& outHeight) 

Répondre

2

J'ai eu cette exception s'écraser, aussi, et dans mon cas, il est toujours produit quand j'ai eu une mauvaise fixation dans mon XAML.

Par exemple, j'ai la propriété:

public String Name {get;set;} 

Et en XAML la liaison I des fautes de frappe:

<TextBlock Text="{Binding Namme}"/> 

Dans mon cas, cela a causé la FileNotFound-Exception pour System.Windows.debug .Ressources.

Lorsque j'ai réparé la reliure, tout a de nouveau fonctionné.

3

est un bug sur wp 7.1 vérifier que msdn link

Questions connexes