WebSharper KendoUI。无法反序列化元数据:IntelliFactory.WebSharper.KendoUI

时间:2014-01-14 06:02:24

标签: f# kendo-ui websharper

我尝试在MS VS 2013中使用WebSharper和KendoUI扩展。

Microsoft Visual Studio Ultimate 2013
Version 12.0.21005.1 REL
Microsoft .NET Framework
Version 4.5.50938

Installed Version: Ultimate

来自NuGet的WebSharper.KendoUI:https://www.nuget.org/packages/WebSharper.KendoUI/

当我尝试构建我的项目时,我得到了下一个错误。请注意,即使我在代码中不使用此软件包,但只安装它,我也会发生此错误。

"D:\projects\ycGit\YC.edu\src\YC.edu\packages\WebSharper.2.5.92.21\build\/../tools/net45\WebSharper.exe" -r "C:\Program Files (x86)\Reference Assemblies\Microsoft\FSharp\.NETFramework\v4.0\4.3.0.0\FSharp.Core.dll" -r "D:\projects\ycGit\YC.edu\src\YC.edu\packages\WebSharper.2.5.92.21\tools\net45\IntelliFactory.Core.dll" -r "D:\projects\ycGit\YC.edu\src\YC.edu\packages\WebSharper.2.5.92.21\tools\net45\IntelliFactory.Formlet.dll" -r "D:\projects\ycGit\YC.edu\src\YC.edu\packages\WebSharper.2.5.92.21\tools\net45\IntelliFactory.Html.dll" -r "D:\projects\ycGit\YC.edu\src\YC.edu\packages\WebSharper.2.5.92.21\tools\net45\IntelliFactory.JavaScript.dll" -r "D:\projects\ycGit\YC.edu\src\YC.edu\packages\WebSharper.2.5.92.21\tools\net45\IntelliFactory.Reactive.dll" -r "D:\projects\ycGit\YC.edu\src\YC.edu\packages\WebSharper.2.5.92.21\tools\net45\IntelliFactory.WebSharper.Collections.dll" -r "D:\projects\ycGit\YC.edu\src\YC.edu\packages\WebSharper.2.5.92.21\tools\net45\IntelliFactory.WebSharper.Control.dll" -r "D:\projects\ycGit\YC.edu\src\YC.edu\packages\WebSharper.2.5.92.21\tools\net45\IntelliFactory.WebSharper.Core.dll" -r "D:\projects\ycGit\YC.edu\src\YC.edu\packages\WebSharper.2.5.92.21\tools\net45\IntelliFactory.WebSharper.dll" -r "D:\projects\ycGit\YC.edu\src\YC.edu\packages\WebSharper.2.5.92.21\tools\net45\IntelliFactory.WebSharper.Dom.dll" -r "D:\projects\ycGit\YC.edu\src\YC.edu\packages\WebSharper.2.5.92.21\tools\net45\IntelliFactory.WebSharper.Ecma.dll" -r "D:\projects\ycGit\YC.edu\src\YC.edu\packages\WebSharper.2.5.92.21\tools\net45\IntelliFactory.WebSharper.Formlet.dll" -r "D:\projects\ycGit\YC.edu\src\YC.edu\packages\WebSharper.2.5.92.21\tools\net45\IntelliFactory.WebSharper.Html.dll" -r "D:\projects\ycGit\YC.edu\src\YC.edu\packages\WebSharper.2.5.92.21\tools\net45\IntelliFactory.WebSharper.Html5.dll" -r "D:\projects\ycGit\YC.edu\src\YC.edu\packages\WebSharper.2.5.92.21\tools\net45\IntelliFactory.WebSharper.JQuery.dll" -r "D:\projects\ycGit\YC.edu\src\YC.edu\packages\WebSharper.JQueryUi.2.5.5.184\lib\net45\IntelliFactory.WebSharper.JQueryUI.dll" -r "D:\projects\ycGit\YC.edu\src\YC.edu\packages\WebSharper.KendoUI.2.4.44.47\lib\IntelliFactory.WebSharper.KendoUI.dll" -r "D:\projects\ycGit\YC.edu\src\YC.edu\packages\WebSharper.2.5.92.21\tools\net45\IntelliFactory.WebSharper.Sitelets.dll" -r "D:\projects\ycGit\YC.edu\src\YC.edu\packages\WebSharper.2.5.92.21\tools\net45\IntelliFactory.WebSharper.Testing.dll" -r "D:\projects\ycGit\YC.edu\src\YC.edu\packages\WebSharper.2.5.92.21\tools\net45\IntelliFactory.WebSharper.Web.dll" -r "D:\projects\ycGit\YC.edu\src\YC.edu\packages\WebSharper.2.5.92.21\tools\net45\IntelliFactory.Xml.dll" -r "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\mscorlib.dll" -r "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Core.dll" -r "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.dll" -r "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Numerics.dll" -r "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Web.dll"  "D:\projects\ycGit\YC.edu\src\YC.edu\AlgoVisPage\obj\Debug\Raw\AlgoVisPage.dll" "D:\projects\ycGit\YC.edu\src\YC.edu\AlgoVisPage\obj\Debug\AlgoVisPage.dll"
        [Error] C:\Users\user\AppData\Local\Temp\tmpA807.tmp(1,1): System.Exception: Failed to deserialize metadata for: IntelliFactory.WebSharper.KendoUI, Version=2.4.0.0, Culture=neutral, PublicKeyToken=dcd983dec8f76a71
    D:\projects\ycGit\YC.edu\src\YC.edu\packages\WebSharper.2.5.92.21\build\WebSharper.targets(103,5): error MSB3073: The command ""D:\projects\ycGit\YC.edu\src\YC.edu\packages\WebSharper.2.5.92.21\build\/../tools/net45\WebSharper.exe" -r "C:\Program Files (x86)\Reference Assemblies\Microsoft\FSharp\.NETFramework\v4.0\4.3.0.0\FSharp.Core.dll" -r "D:\projects\ycGit\YC.edu\src\YC.edu\packages\WebSharper.2.5.92.21\tools\net45\IntelliFactory.Core.dll" -r "D:\projects\ycGit\YC.edu\src\YC.edu\packages\WebSharper.2.5.92.21\tools\net45\IntelliFactory.Formlet.dll" -r "D:\projects\ycGit\YC.edu\src\YC.edu\packages\WebSharper.2.5.92.21\tools\net45\IntelliFactory.Html.dll" -r "D:\projects\ycGit\YC.edu\src\YC.edu\packages\WebSharper.2.5.92.21\tools\net45\IntelliFactory.JavaScript.dll" -r "D:\projects\ycGit\YC.edu\src\YC.edu\packages\WebSharper.2.5.92.21\tools\net45\IntelliFactory.Reactive.dll" -r "D:\projects\ycGit\YC.edu\src\YC.edu\packages\WebSharper.2.5.92.21\tools\net45\IntelliFactory.WebSharper.Collections.dll" -r "D:\projects\ycGit\YC.edu\src\YC.edu\packages\WebSharper.2.5.92.21\tools\net45\IntelliFactory.WebSharper.Control.dll" -r "D:\projects\ycGit\YC.edu\src\YC.edu\packages\WebSharper.2.5.92.21\tools\net45\IntelliFactory.WebSharper.Core.dll" -r "D:\projects\ycGit\YC.edu\src\YC.edu\packages\WebSharper.2.5.92.21\tools\net45\IntelliFactory.WebSharper.dll" -r "D:\projects\ycGit\YC.edu\src\YC.edu\packages\WebSharper.2.5.92.21\tools\net45\IntelliFactory.WebSharper.Dom.dll" -r "D:\projects\ycGit\YC.edu\src\YC.edu\packages\WebSharper.2.5.92.21\tools\net45\IntelliFactory.WebSharper.Ecma.dll" -r "D:\projects\ycGit\YC.edu\src\YC.edu\packages\WebSharper.2.5.92.21\tools\net45\IntelliFactory.WebSharper.Formlet.dll" -r "D:\projects\ycGit\YC.edu\src\YC.edu\packages\WebSharper.2.5.92.21\tools\net45\IntelliFactory.WebSharper.Html.dll" -r "D:\projects\ycGit\YC.edu\src\YC.edu\packages\WebSharper.2.5.92.21\tools\net45\IntelliFactory.WebSharper.Html5.dll" -r "D:\projects\ycGit\YC.edu\src\YC.edu\packages\WebSharper.2.5.92.21\tools\net45\IntelliFactory.WebSharper.JQuery.dll" -r "D:\projects\ycGit\YC.edu\src\YC.edu\packages\WebSharper.JQueryUi.2.5.5.184\lib\net45\IntelliFactory.WebSharper.JQueryUI.dll" -r "D:\projects\ycGit\YC.edu\src\YC.edu\packages\WebSharper.KendoUI.2.4.44.47\lib\IntelliFactory.WebSharper.KendoUI.dll" -r "D:\projects\ycGit\YC.edu\src\YC.edu\packages\WebSharper.2.5.92.21\tools\net45\IntelliFactory.WebSharper.Sitelets.dll" -r "D:\projects\ycGit\YC.edu\src\YC.edu\packages\WebSharper.2.5.92.21\tools\net45\IntelliFactory.WebSharper.Testing.dll" -r "D:\projects\ycGit\YC.edu\src\YC.edu\packages\WebSharper.2.5.92.21\tools\net45\IntelliFactory.WebSharper.Web.dll" -r "D:\projects\ycGit\YC.edu\src\YC.edu\packages\WebSharper.2.5.92.21\tools\net45\IntelliFactory.Xml.dll" -r "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\mscorlib.dll" -r "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Core.dll" -r "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.dll" -r "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Numerics.dll" -r "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Web.dll"  "D:\projects\ycGit\YC.edu\src\YC.edu\AlgoVisPage\obj\Debug\Raw\AlgoVisPage.dll" "D:\projects\ycGit\YC.edu\src\YC.edu\AlgoVisPage\obj\Debug\AlgoVisPage.dll"" exited with code 1.

请,任何人都可以解释侯来解决它。

感谢。

1 个答案:

答案 0 :(得分:0)

您看到的错误是由于您的Kendo UI扩展和WebSharper的版本不同(分别为2.4.X和2.5.X)。 WebSharper扩展与其匹配的WebSharper一起进行版本化,因为它们使用特定的“元数据”格式来描述F#到JavaScript转换工件,因此您需要WebSharper 2.4(可以从Nuget获得)或2.5兼容的Kendo UI扩展让两者一起工作。

从2.5开始,Kendo UI是一种高级扩展,因此您需要成为获得许可的开发人员才能使用它。有关详细信息,请参阅http://websharper.com/store