程序集版本与 system.web.mvc、syncFusion 不匹配

发布于 2025-01-01 16:55:29 字数 792 浏览 3 评论 0原文

我正在尝试执行 Syncfusion 提供的示例,但出现汇编错误。

(0): error CS1705: Assembly 'Syncfusion.Schedule.Mvc, Version=10.104.0.44, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89' uses 'System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' which has a higher version than referenced assembly 'System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'

我以为我只需要删除失败的引用并添加我的更高版本,即 4 号。不幸的是,在构建过程中,该项目继续尝试使用版本 2 进行构建。

我至少应该有这个:

<add assembly="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

但是在构建过程中我得到了这:

<add assembly="System.Web.Mvc, Version=2.0.0.0, Culture=neutral, ublicKeyToken=31BF3856AD364E35" />

I am trying to execute a sample provided by Syncfusion and I get an assembly error.

(0): error CS1705: Assembly 'Syncfusion.Schedule.Mvc, Version=10.104.0.44, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89' uses 'System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' which has a higher version than referenced assembly 'System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'

I thought I just had to remove the failing reference and add my higher version, number 4. Unfortunatly, on the build, the project keeps on trying to build with the version 2.

I should at least have this:

<add assembly="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

But on the build I get this:

<add assembly="System.Web.Mvc, Version=2.0.0.0, Culture=neutral, ublicKeyToken=31BF3856AD364E35" />

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

记忆之渊 2025-01-08 16:55:29

确保您正在构建的项目是 ASP.NET MVC 3 项目而不是 ASP.NET MVC 2 项目。鉴于此错误,看来您正在使用仅为 MVC 3 设计的 SyncFusion 组件。

Make sure that the project you are building is an ASP.NET MVC 3 project and not an ASP.NET MVC 2 project. Given this error, it looks like you are using SyncFusion components that are designed for MVC 3 only.

焚却相思 2025-01-08 16:55:29

请检查以下内容,

  1. 如果您使用 Syncfusion 示例,那么我们建议您检查配置管理器。如果您使用的是 MVC-2,请将配置管理器设置为调试;如果您使用的是 MVC-3,请将配置管理器设置为调试-MVC3。

    注意:配置管理器将在构建菜单中可用

  2. 如果您创建了自己的示例,我们建议您检查项目中的 dll 引用并运行 MVC 切换器和程序集管理器。请参考以下链接。

http://help.syncfusion.com/resources/Content/ug_101/user%20interface/asp.net%20mvc/grid/documents/612howtoswitchbetwee.htm

问候,

Sridhar N

Please check the below,

  1. If you are using Syncfusion samples, then we would suggest you to check the Configuration Manager. If you are using MVC-2 then please set Configuration Manager as debug and if you are using MVC-3 then please set Configuration Manager as debug-MVC3.

    Note: Configuration Manager will be available in Build Menu

  2. If you have created your own sample we would suggest you to check the dll reference in the project and run the MVC switcher and assembly manager. Please refer the below link.

http://help.syncfusion.com/resources/Content/ug_101/user%20interface/asp.net%20mvc/grid/documents/612howtoswitchbetwee.htm

Regards,

Sridhar N

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文