TwitterBootstrapMVC无法加载文件或程序集';便携式的许可,版本=1.0.0.0

本文关键字:许可 便携式 版本 加载 文件 程序集 TwitterBootstrapMVC | 更新日期: 2023-09-27 18:25:28

我正在尝试https://www.twitterbootstrapmvc.com/工作:

  • MVC 5。净额4.51
  • NuGet 2.85
  • 通过NuGet TwitterBootstrapMVC5安装
  • 按照说明获取许可证文件,并按照说明将其安装在应用程序的根目录中
  • 已验证是否安装了所有预期的程序包:

_

PM> install-package TwitterBootstrapMVC5
Attempting to resolve dependency 'T4MVCExtensions (≥ 3.6.5)'.
Attempting to resolve dependency 'Portable.Licensing (≥ 1.1.0)'.
'TwitterBootstrapMVC5 3.13.10' already installed.
MyApp.Web already has a reference to 'TwitterBootstrapMVC5 3.13.10'.
PM> install-package Portable.Licensing
'Portable.Licensing 1.1.0' already installed.
MyApp.Web already has a reference to 'Portable.Licensing 1.1.0'.

然而,一旦我加载了一个包含帮助程序的视图,我就会得到:

Could not load file or assembly 'Portable.Licensing, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Exception: Could not load file or assembly 'Portable.Licensing, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
Source Error:
Line 7:
Line 8:
Line 9: @using (var f = Html.Bootstrap().Begin(new Form()))
Line 10: {
Line 11: @f.FormGroup().TextBoxFor(x => x.AbbreviationCode).Placeholder("Abreviation Code")

有什么想法吗?我需要做什么才能找到许可程序集?

TwitterBootstrapMVC无法加载文件或程序集';便携式的许可,版本=1.0.0.0

我遇到了同样的问题,并通过引用Portable修复了它。Licensing.dll