无法加载文件或程序集“System.Net.Http,版本= 4.0.0.0” [英] Could not load file or assembly 'System.Net.Http, Version=4.0.0.0'

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

问题描述

我不知道我做什么,但我可能已经从GAC中删除 System.Net.Http 4.0.0.0 。我有一个Windows移植库为目标的WinRT被编译和工作正常,现在我每次我试着运行它时收到以下错误

I don't know what I did, but I may have removed System.Net.Http 4.0.0.0 from the GAC. I have a Windows Portable Library that targets WinRT that was compiling and working fine, and now I get the following error every time I try and run it

无法加载文件或程序集System.Net.Http,版本= 4.0.0.0,文化=中性公钥= b03f5f7f11d50a3a'或它的一个依赖。该系统找不到指定的文件。:System.Net.Http,版本= 4.0.0.0,文化=中性公钥= b03f5f7f11d50a3a

Could not load file or assembly 'System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.":"System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a

我怎样才能重新添加 System.Net.Http 4.0.0.0 ?我每次找.dll文件,我觉得2.0.0.0版本?

how can I re-add System.Net.Http 4.0.0.0? Every time I look for the .dll, I find the 2.0.0.0 version?

推荐答案

要修复这在之前的Windows 8的Windows版本,请添加或删除程序,并做了修复安装.NET Framework 4.5。

To repair this on versions of Windows prior to Windows 8, go to Add or Remove Programs and do a repair install of the .NET Framework 4.5.

要配对在此版本的Windows 8或更大,您将需要运行系统还原到Windows二进制文件还原到较早版本时,它的工作。

To pair this on versions Windows 8 or greater, you will need to run System Restore to restore Windows binaries to an earlier version when it did work.

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

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