This is a migrated thread and some comments may be shown as answers.

System.Web error with .NET 4 Client Profile

1 Answer 55 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Dan
Top achievements
Rank 2
Dan asked on 16 Aug 2011, 06:24 PM
I am getting an error which appears to be similar to this one:
http://www.telerik.com/community/forums/wpf/general-discussions/system-web-assembly-error.aspx

I have a WPF app targeted to .NET 4 Client Profile, and it is referencing a view models namespace which is populating a BulletGraph QualitativeRangeCollection.  This project is referenced with  Telerik.Windows.Controls, .Controls.DataVisualization, and Windows.Data from RadControls for WPF Q2 2011.   On build I am getting this error:

The referenced assembly "C:\Development\DHS\DHSDashboardService\DHSDashboardViewModels\bin\DHSDashboardViewModels.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.

1 Answer, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 22 Aug 2011, 08:42 AM
Hi Dan,

I did a search with the error text and here is what I found. Maybe the workarounds suggested there can help.

Kind regards,
Ross
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
General Discussions
Asked by
Dan
Top achievements
Rank 2
Answers by
Rossen Hristov
Telerik team
Share this question
or