asp.net – System.Web.UI.DataVisualization.Charting.Grid在GA
发布时间:2020-12-16 09:21:53 所属栏目:asp.Net 来源:网络整理
导读:我已将Web应用程序从.NET 3.5升级到.NET 4,并且在浏览到使用Chart控件的页面时出现此异常: The type ‘System.Web.UI.DataVisualization.Charting.Grid’ exists in both ‘c:WindowsMicrosoft.NETassemblyGAC_MSILSystem.Web.DataVisualizationv4.0_
我已将Web应用程序从.NET 3.5升级到.NET 4,并且在浏览到使用Chart控件的页面时出现此异常:
如何使用4.0控件实现此功能?谢谢. 解决方法
你可以使用
assembly redirection.
例如(确保publicKeyToken是正确的,我在这台计算机上没有程序集): <configuration> <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="System.Web.DataVisualization" publicKeyToken="32ab4ba45e0a69a1" culture="neutral" /> <bindingRedirect oldVersion="3.5.0.0" newVersion="4.0.0.0"/> </dependentAssembly> </assemblyBinding> </runtime> </configuration> (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- asp.net – AspNetCore.Mvc与AspNetCore.Mvc.Core
- AspNetCore.Identity详解2——注册用户
- 如何从ASP .NET网站检测客户端上安装的Java运行时?
- asp.net – Visual Studio开发服务器使用错误的端口
- MiniProfiler NET Core
- asp.net-mvc – MVC角色授权
- asp.net – RegisterForEventValidation只能在渲染过程中调
- asp.net-mvc – 在EF 6中设置命令超时
- 在dotnet发布后运行角度生产版本
- asp.net-mvc – MVC3 TextBoxFor与EditorFor – 每个问题
推荐文章
站长推荐
热点阅读