The DAL layer quotes System.Net.Http, causing a flurry of flustered

Source: Internet
Author: User

It's almost time to get off work. The Code data layer compiles failed, causing the whole solution to fail;
Other colleagues Although the VS version is different, but can be compiled through; Given today's changes to the VS setting, all of today's changed settings are restored, and the result is not. In the end, the original settings are restored directly, compiled or failed;
It's time to remember to look at the compiler log for specific errors, compile the log:

Msb3268:the Primary Reference "data, version=1.0.0.2, culture=neutral, Processorarchitecture=msil"
Could not being resolved because it has a indirect dependency on the framework assembly "System.Net.Http, version=2.0.0.0, C Ulture=neutral,
PUBLICKEYTOKEN=B03F5F7F11D50A3A "which could is not being resolved in the currently targeted framework. ". Netframework,version=v4.0 ".
To resolve this problem, either remove the reference "data, version=1.0.0.2, culture=neutral, Processorarchitecture=msil"
or retarget your application to a framework version which contains "System.Net.Http, version=2.0.0.0, Culture=neutral, Pub LICKEYTOKEN=B03F5F7F11D50A3A ".

To NETFramework v4.0 to find System.Net.Http really did not, copy from other places into the directory, or not;
Follow this lead and find out that this thing is in ASP. After downloading the installation of ASP. NET MVC 4, the problem of recompiling the project is solved ...

The DAL layer quotes System.Net.Http, causing a flurry of flustered

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.