Error 1 The type or namespace name 'log4net' could not be found (are you missing a using directive or an assembly reference?) c:\projects\DevSQL\…\Properties\AssemblyInfo.cs 4 7 SomeService
And warning:
Warning 8 The referenced assembly "c:\projects\DevSQL\…\AccountService\aaa.ServerCommon\bin\Debug\aaa.ServerCommon.dll" could not be resolved because it has a dependency on "System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". aaaService
So you are getting an error that typically points to an assembly reference not found. Well just hang on a second before you go wild with debugging this. First, check to make sure that there are no yellow exclamation marks on the assembly reference. That would be a classic assembly not found problem. If it is not there you may have another issue as discussed here.
Check to see if you have any warnings.
If you have warning messages like this you have a .NET 4.0 Profile settings error. This is super easy to fix. To give you some background on this, there are now more than one installation profile for .NET Runtime Libraries. One is Full and one is Client. The idea behind this is that if you are building a program that does not need to reference server side assemblies (System.Web.* as an example) then why install them? You can now target a Full or Client profile. The Client profiles will NOT have the server assemblies installed.
To fix the problem, you need to target the full profile. Simply Right click on your project and go to Properties.
Simply change the Target Framework drop down to .NET Framework 4 instead of .NET Framework 4 Client Profile and your code should compile.
c992b81c-71a8-4e7e-a7a2-85e234e1eaee|4|5.0