简体   繁体   English

将VS2008解决方案转换为VS2010在ASP.NET 3.5 SP1中创建编译错误

[英]Converting VS2008 Solution to VS2010 Creates compile errors in ASP.NET 3.5 SP1

I am converting a large solution from Visual Studio 2008 to Visual Studio 2010. The conversion completes without errors. 我正在将大型解决方案从Visual Studio 2008转换为Visual Studio2010。转换完成没有错误。 When I go to build the solution one particular section of the application throws error but it didn't when the solution was 2008. 当我去构建解决方案时,应用程序的一个特定部分抛出错误,但是当解决方案是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. 该dll位于bin中,而不位于GAC中。 The .refresh file is pointing to the correct location. .refresh文件指向正确的位置。 And all sections in the Web.Config are there, if you need to see them let me know. Web.Config中的所有部分都在这里,如果您需要查看它们,请告诉我。

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. 谢谢。

Try to install Microsoft Chart Controls for Microsoft .NET Framework 3.5. 尝试安装Microsoft .NET Framework 3.5的Microsoft图表控件。 You can find it on http://www.microsoft.com/downloads/details.aspx?FamilyID=130f7986-bf49-4fe5-9ca8-910ae6ea442c&DisplayLang=en 您可以在http://www.microsoft.com/downloads/details.aspx?FamilyID=130f7986-bf49-4fe5-9ca8-910ae6ea442c&DisplayLang=en上找到它

That is the charting control, you probably need to get the latest that works with .net 4.0 那是制图控件,您可能需要获取适用于.net 4.0的最新版本。

Some information about it is at: http://msdn.microsoft.com/en-us/library/ee410579(VS.100).aspx 有关它的一些信息,请访问: http : //msdn.microsoft.com/zh-cn/library/ee410579(VS.100).aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM