views:

438

answers:

3

I am converting a large solution from Visual Studio 2008 to Visual Studio 2010. The conversion completes without errors. When I go to build the solution one particular section of the application throws error but it didn't when the solution was 2008.

Error 1 Could not load file or assembly 'System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. C:\MyProject\Results\Result.ascx 3

And

C:\CMyProject\Results\Result.ascx(3): Build (web): Could not load file or assembly 'System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

The dll is in the bin and it is not in the GAC. The .refresh file is pointing to the correct location. And all sections in the Web.Config are there, if you need to see them let me know.

I have gone over the fixes I found online and nothing seems to help. I would really appreciate if someone could help me or point me in the right direction?

Thank You.

A: 

That is the charting control, you probably need to get the latest that works with .net 4.0

Some information about it is at: http://msdn.microsoft.com/en-us/library/ee410579(VS.100).aspx

Chris Lively
My solution and all projects under are targeted at 3.5 so that should not be an issue? Or am I wrong?
Lukasz
Hmm. Sounds like you ought to be okay... Sorry, no more ideas. I'm staying away from 2010 until summer.
Chris Lively
A: 

Try to install Microsoft Chart Controls for Microsoft .NET Framework 3.5. You can find it on http://www.microsoft.com/downloads/details.aspx?FamilyID=130f7986-bf49-4fe5-9ca8-910ae6ea442c&DisplayLang=en

Miha Pavlinek
A: 

Did you ever find a solution to this problem? I have the exact same problem. I would like to solve it if possible without installing MSChart.exe.

Raed
I am still working on it... Installing the charting on the machine seems to fix it but the error randomly shows up. This issue is a pain to put it mildly!
Lukasz
Looks like the only way to get it working is to install the Chart Control on the machine. It also requires a restart after the installation before it will work. Suck's but at least it works!
Lukasz