无法加载文件或程序集“presentationFramework,版本= 3.0.0.0,文化=中立, [英] Could not load file or assembly 'PresentationFramework, Version=3.0.0.0, Culture=neutral,

查看:3500
本文介绍了无法加载文件或程序集“presentationFramework,版本= 3.0.0.0,文化=中立,的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我工作的WPF应用程序,这是首次针对3.0框架。当我试图使它在4.0的工作,我有以下异常。

I am working on WPF application, which was first targeted to 3.0 framework. When I tried to make it work on 4.0, I got following Exception.

System.IO.FileNotFoundException是   未处理消息:无法加载文件   或组装'presentationFramework,   版本= 3.0.0.0,文化=中立,   公钥= 31bf3856ad364e35或   它的一个依赖。系统   找不到指定文件。

System.IO.FileNotFoundException was unhandled Message: Could not load file or assembly 'PresentationFramework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

如果我编译应用程序使用.NET 4.0中它工作正常。但是,3.0 EXE文件无法正常工作4.0。

If I compile application using .Net 4.0 it is working fine. But 3.0 exes are not working with 4.0.

在此先感谢。

推荐答案

尝试删除参考presentationFramework然后重新定位你的应用程序framwork,然后重新添加presentationFramework参考。

Try to delete reference to the PresentationFramework then retarget your application framwork and then add PresentationFramework reference again.

这篇关于无法加载文件或程序集“presentationFramework,版本= 3.0.0.0,文化=中立,的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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