Reference issues in .NET 4.0 project to .NET 2.0 dll/project?

Your 2.0 assembly has a reference to System. Web The reference is being automatically forwarded to your target framework, 4.0. So it is attempting to use System.

Web, version 4.0.0.0 The problem is with 4.0 (actually this started with 3.5), there is now the notion of a client profile. The client profile has a smaller set of reference assemblies, anything web/server related has been removed. This is to make the .

NET framework a smaller/simpler download for end users.

Your 2.0 assembly has a reference to System.Web. The reference is being automatically forwarded to your target framework, 4.0. So it is attempting to use System.

Web, version 4.0.0.0. The problem is with 4.0 (actually this started with 3.5), there is now the notion of a client profile. The client profile has a smaller set of reference assemblies, anything web/server related has been removed.

This is to make the . NET framework a smaller/simpler download for end users. With VS 2010 and .

NET 4, the client profile is being pushed a lot harder, MS really wants us to use it. So your . NET 4 project is targeting the client profile by default.

Your referenced assembly wants System. Web, so in that case you need to switch to the full profile.

Thanks! That did it! :D – Greg McGuffey Aug 3 '10 at 4:40.

There is very little point in targeting the client profile for . NET 4.0. The download is 41MB, the full version is 48MB, only 15% bigger.

Unfortunately it is the default in VS2010, just change it with Project + Properties, Application tab, Target framework combo. The client profile does make a lot of sense if you target 3.5, the full install is ~350 MB. The huge difference is explained by the prerequisites, .

NET 4.0 requires at least XP SP3 or Vista SP1. But 3.5 installs on any version of Windows > 2000. The 3.5 installer thus contains lots of the required updates for unmanaged Windows components used by .NET.

The web installer lessens that blow considerably btw.

Thanks for the additional information. I like understanding what's going on! – Greg McGuffey Aug 3 '10 at 4:31.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions