FileNotFoundException异常在Silverlight WP7为 [英] FileNotFoundException in Silverlight for WP7

查看:141
本文介绍了FileNotFoundException异常在Silverlight WP7为的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

文件或程序集名称'System.Windows.debug.resources,版本= 2.0.5.0,文化= EN-US,公钥= 7cec85d7bea7798e',或者它的一个依赖,没有被发现。



我敢肯定它是与未正确安装某些文件,看到这个例外在各种场合如何发生的。这可能是在它的异常名的文件。



有谁知道我是否可以重新安装或类似的东西?



它发生在一个地方,没有拆卸可用。



调用栈位置

  mscorlib.dll中!System.ThrowHelper.throwVersion37CompatException(System.ExceptionType newEType = FileNotFoundException异常,字符串newString =文件或程序集名称'System.Windows.debug.resources,版本= 2.0 .5.0文化= EN-US,公钥= 7cec85d7bea7798e',或者它的一个依赖,没有被发现。System.ExceptionType oldEType = IOException异常,字符串oldString =文件或程序集名称'System.Windows.debug.resources,版本= 2.0.5.0,文化= EN-US,公钥= 7cec85d7bea7798e',或者它的一个依赖,没有被发现。)+的0x19字节

展开异常详细信息

  System.IO.FileNotFoundException发生
消息=文件或程序集名称'System.Windows.debug.resources,版本= 2.0.5.0,文化= EN-US,公钥= 7cec85d7bea7798e',或者它的一个依赖,没有被发现。
堆栈跟踪:
在System.ThrowHelper.throwVersion37CompatException(ExceptionType newEType,字符串newString,ExceptionType oldEType,字符串oldString)
在System.Reflection.Assembly.Load(字符串assemblyString)
。在System.Windows.Resx..ctor()
在System.Windows.Resx.GetLoader()
在System.Windows.Resx.GetStringHelper(字符串名称)
在System.Windows.Resx .GetString(字符串名称)
在System.Windows.PropertyAccessPathStep.ConnectToPropertyInSource(布尔isSourceCollectionViewCurrentItem)
在System.Windows.PropertyAccessPathStep.ConnectToProperty()
在System.Windows.PropertyAccessPathStep.ReConnect(对象newSource的)
在System.Windows.PropertyPathListener.ReConnect(对象源)在System.Windows.Data.BindingExpression.SourceAcquired
()在System.Windows.Data.BindingExpression.System.Windows
.IDataContextChangedListener.OnDataContextChanged(对象发件人,DataContextChangedEventArgs E)
在System.Windows.Data.BindingExpression.DataContextChanged(对象发件人,DataContextChangedEventArgs E)
在System.Windows.FrameworkElement.OnDataContextChanged(DataContextChangedEventArgs E)$ b在System.Windows.FrameworkElement.OnAncestorDataContextChanged(DataContextChangedEventArgs E)
在System.Windows.FrameworkElement.NotifyDataContextChanged(DataContextChangedEventArgs E)
在System.Windows.FrameworkElement.OnTreeParentUpdated(DependencyObject的newParent,布尔bIsNewParentAlive)
$ b。在System.Windows.DependencyObject.UpdateTreeParent(IManagedPeer oldParent,IManagedPeer newParent,布尔bIsNewParentAlive,布尔keepReferenceToParent)
在MS.Internal.FrameworkCallbacks.ManagedPeerTreeUpdate(IntPtr的oldParentElement,IntPtr的parentElement,IntPtr的元素childElement,字节bIsParentAlive,字节bKeepReferenceToParent,字节bCanCreateParent)
在MS.Internal.XcpImports.Measure_WithDesiredSizeNative(IntPtr的元素,单inWidth,单inHeight,单,放大器; outWidth,单&功放; outHeight)在MS.Internal.XcpImports.UIElement_Measure_WithDesiredSize(的UIElement元素,大小availableSize)
。在System.Windows.UIElement.Measure_WithDesiredSize
(面积availableSize)
在System.Windows.Controls.VirtualizingStackPanel。 MeasureChild(儿童的UIElement,大小layoutSlotSize)
在System.Windows.Controls.VirtualizingStackPanel.MeasureOverride(大小限制)
在System.Windows.FrameworkElement.MeasureOverride(IntPtr的nativeTarget,双inWidth,双inHeight,双&安培; outWidth,双&安培; outHeight)
在MS.Internal.XcpImports.MeasureOverrideNative(IntPtr的元素,单inWidth,单inHeight,单&功放; outWidth,单&安培; outHeight)
在MS.Internal.XcpImports.FrameworkElement_MeasureOverride(FrameworkElement的元素,在System.Windows.Controls.ScrollContentPresenter.MeasureOverride在System.Windows.FrameworkElement.MeasureOverride尺寸availableSize)
(面积availableSize)
(大小限制)
在System.Windows.FrameworkElement。的MeasureOverride(IntPtr的nativeTarget,双inWidth,双inHeight,双&安培; outWidth,双&安培; outHeight)
在MS.Internal.XcpImports.MeasureNative(IntPtr的元素,单inWidth,单inHeight)
在MS.Internal.XcpImports.UIElement_Measure(的UIElement元素,大小availableSize)
的系统。 Windows.UIElement.Measure(尺寸availableSize)
在System.Windows.Controls.ScrollViewer.MeasureOverride(大小限制)
在System.Windows.FrameworkElement.MeasureOverride(IntPtr的nativeTarget,双inWidth,双inHeight,双&放大器; outWidth,双&安培; outHeight)
在MS.Internal.XcpImports.MeasureOverrideNative(IntPtr的元素,单inWidth,单inHeight,单&功放; outWidth,单&安培; outHeight)
在MS.Internal.XcpImports.FrameworkElement_MeasureOverride( FrameworkElement的元素,大小availableSize)
在System.Windows.FrameworkElement.MeasureOverride(尺寸availableSize)
在System.Windows.FrameworkElement.MeasureOverride(IntPtr的nativeTarget,双inWidth,双inHeight,双&安培; outWidth,双&安培; outHeight)
在MS.Internal.XcpImports.MeasureOverrideNative(IntPtr的元素,单inWidth,单inHeight,单&功放; outWidth,单&安培; outHeight)
在MS.Internal.XcpImports.FrameworkElement_MeasureOverride(FrameworkElement的元素,大小availableSize在System.Windows.FrameworkElement.MeasureOverride)
(面积availableSize)
在System.Windows.FrameworkElement.MeasureOverride(IntPtr的nativeTarget,双inWidth,双inHeight,双&安培; outWidth,双&安培; outHeight)
。在MS.Internal.XcpImports.MeasureOverrideNative(IntPtr的元素,单inWidth,单inHeight,单&功放; outWidth,单&安培; outHeight)
在MS.Internal.XcpImports.FrameworkElement_MeasureOverride(FrameworkElement的元素,大小availableSize)
在System.Windows.FrameworkElement.MeasureOverride(尺寸availableSize)
在Microsoft.Phone.Controls.PhoneApplicationFrame.MeasureOverride(尺寸availableSize)
在System.Windows.FrameworkElement.MeasureOverride(IntPtr的nativeTarget,双inWidth,双inHeight,双&安培; outWidth,双&安培; outHeight)


解决方案

下面是MSDN参考。看来,他们并没有在WP 7.1(芒果)修复它。我遇到同样的问题。



http://social.msdn.microsoft.com/forums/en-us/windowsphone7series/thread/2B040008-A240-470D-91AF-E998984FFF12


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.

I'm pretty sure its something to do with some file not properly installed, seeing how this exception occurs on various occasions. It might be a file with exception names in it.

Does anybody know if I can reinstall it or something like that?

It occurs in a place where no disassembly is available.

Callstack Location

mscorlib.dll!System.ThrowHelper.throwVersion37CompatException(System.ExceptionType newEType = FileNotFoundException, string newString = "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.", System.ExceptionType oldEType = IOException, string oldString = "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.") + 0x19 bytes  

Full Exception Details

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.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)
       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 Microsoft.Phone.Controls.PhoneApplicationFrame.MeasureOverride(Size availableSize)
       at System.Windows.FrameworkElement.MeasureOverride(IntPtr nativeTarget, Double inWidth, Double inHeight, Double& outWidth, Double& outHeight)

解决方案

Here is the MSDN reference. It seems that they didn't fix it yet in WP 7.1 (Mango). I'm experiencing the same problem.

http://social.msdn.microsoft.com/forums/en-us/windowsphone7series/thread/2B040008-A240-470D-91AF-E998984FFF12

这篇关于FileNotFoundException异常在Silverlight WP7为的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆