Click here to Skip to main content
15,880,392 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi Guys,

Really I am completely headbanged.

I installed Unity.WebApi and started getting following two error.

1. Unity.WebApi uses System.Web.Http with version 5.0.0.0 and used assembly has refrence version 4.0.0.0.
2. Unity.WebApi uses MIcrosoft.Practices.Unity with version 4.0.0.0 and used assembly has refrence version 2. something.

Guys please help as you are my last hope.

I tried following.

1. Reinstalled Unity.WebApi, Unity, WebApi2 core
2. Updated all packaged.
3. Did above both point using nuget GUI as well as nuget console.

pleased please please help with some working solution.
Posted

1 solution

Because your calling assembly is built for .NET version x.y, it can't reference assemblies that are built for later versions - as the "required .NET version checking" when your app is started would start the wrong version.

Check your project properties, and look for "ASP.NET Core 5.0"
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900