Click here to Skip to main content
15,909,091 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
I get the following error message when trying to build my project with a new Crystal Report I added (this is the first one in the project).
Warning	9	The referenced assembly "C:\Documents and Settings\rlolley\My Documents\Visual Studio 2010\Projects\SMMS\Maintenance\bin\Debug\Maintenance.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". Please remove references to assemblies not in the targeted framework or consider retargeting your project.

What is it trying to tell me. I have tried changing the targeted framework to .net framework 4 client profile, and I get this error:
Error	8	The type or namespace name 'CrystalDecisions' could not be found (are you missing a using directive or an assembly reference?)

I can't get past this.
Any help would be appreciated...
Thanks
Posted
Updated 4-Oct-11 16:19pm
v2

 
Share this answer
 
Comments
Richard Lolley 5-Oct-11 18:15pm    
Thanks for the tip. It pointed me in the right direction. My solution had multiple projects inside, and one of the projects was set to Client Profile and all the others were not, so I changed the client profile project to .net Framework 4 as the target platform and alll the errors went away.
Be sure to check ALL your projects for this issue or you will go crazy.
Thanks
Sam781 11-Feb-13 11:13am    
What does "Client set to Client Profile" mean? Where is this settng?
Thanks for not helping at all.
This is regarding wrong selection of the .net Framework. Read this article to have an idea to solve it.

http://pathumf.blogspot.com/2011/07/how-to-add-crystal-report-for-visual.html[^]
 
Share this answer
 
Comments
Sam781 11-Feb-13 11:17am    
I am getting this error.
I did not get before. Now I've come back and I have it for no apparent reason.

Nothing is referencing System.Web in my dll.
Even if it was I should be able to reference any dll.

What is going on here?

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