在 Visual Studio 2010 上加载 xaml 页面时出错
在 Visual Studio 上处理 Windows Phone 7 应用程序时,打开 XAML 设计器时收到此错误:
System.TypeLoadException 找不到 类型 System.Security.Cryptography.Aes 在模块 mscorlib.dll 中。
这是一个屏幕截图
我尝试删除内容的各个部分,我什至重新安装了 Visual Studio 2010 SP1 但仍然有同样的错误,对此有什么想法吗?
谢谢。
While working on a Windows Phone 7 Application on Visual studio, I am getting this error when I open the XAML designer :
System.TypeLoadException Cannot find
type System.Security.Cryptography.Aes
in module mscorlib.dll.
Here is a screenshot
I tried deleting various parts of the content, I even reinstalled Visual Studio 2010 SP1 but still have the same error, any thoughts on this?
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我很长一段时间都在与同样类型的错误(不完全是你的错误)作斗争。
在“Expression Blend 4.0”中加载项目后,我终于可以修复它了。因为表达混合可以比 Visual Studio Designer 更好地处理和显示错误。
就我而言,错误与 App.xaml 中的静态资源之一有关,
我建议在“表达式混合”中打开项目,以查看错误源自项目的哪一行。
I struggled with the same type of error (not exactly as yours) for a long time.
I could fix it finally after I loaded the project in "Expression Blend 4.0". Because expression blend can handle and show errors quite better than visual studio designer.
In my case error was regarding one of my static resources in App.xaml
I recommend opening the project in "expression blend" to see which line of your project the error is originating from.
我遇到了类似的问题,我通过删除“参考”中的绘图 DLL 参考来修复我的问题,然后编译就没有问题。我想说尝试删除参考文献中的任何绘图 DLL,也许它会起作用,也许不会,但值得一试。
I had a similar problem and I fixed mine by removing a Drawing DLL reference at "References" then it compiled without a problem. I'd say try removing any Drawing DLL you have at References maybe it will work maybe not but its worth a try.