无法加载文件或程序> 'System.Windows,版本= 2.0.5.0 [英] Could not load file or assembly > 'System.Windows, Version=2.0.5.0

查看:121
本文介绍了无法加载文件或程序> 'System.Windows,版本= 2.0.5.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的Silverlight应用程序,我不断收到此错误的第一次加载:

On first load of my Silverlight application I keep getting this error:

无法加载文件或程序
系统.Windows,版本= 2.0.5.0,
区域性=中性,
公钥= 7cec85d7bea7798e'或其依赖
之一。该系统
找不到指定文件

Could not load file or assembly 'System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' or one of its dependencies. The system cannot find the file specified

但只是刷新页面,它会被解决!

but by just refreshing the page, it'll be solved!

似乎它的已知的Silverlight的bug:
http://connect.microsoft.com/VisualStudio/feedback/details/464190/silverlight-compilation-problem-in-team-build-environment

it seems that it's known bug of Silverlight : http://connect.microsoft.com/VisualStudio/feedback/details/464190/silverlight-compilation-problem-in-team-build-environment

他们提出的解决方法,但对我来说是行不通的。

they suggest workaround, but does not work in my case.

推荐答案

那么实际上System.Windows程序集复制到输出目录解决了这个问题形成了我。只要确保它被复制到徘徊无论你将要执行你的应用程序,而不仅仅是Debug文件夹。也有不具有类似问题的很好的替代: SilverUnit

Well actually 'System.Windows' assembly is copied to the output directory solved the problem form me. Just make sure that it is copied to whereever you're going to be executing your app, not just the Debug folder. Also there is a very good alternative that doesn't have similar problems: SilverUnit

这篇关于无法加载文件或程序> 'System.Windows,版本= 2.0.5.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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