System.Web error with .NET 4 Client Profile

2 posts, 0 answers
  1. Dan
    Dan avatar
    202 posts
    Member since:
    May 2006

    Posted 16 Aug 2011 Link to this post

    I am getting an error which appears to be similar to this one:

    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=, 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.
  2. Rossen Hristov
    Rossen Hristov avatar
    2477 posts

    Posted 22 Aug 2011 Link to this post

    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,
    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 >>

Back to Top