TwitterBootstrapMVC无法加载文件或程序集' Portable.Licensing,Version = 1.0.0.0

时间:2014-10-04 10:09:17

标签: c# asp.net-mvc twitter-bootstrap

我想让https://www.twitterbootstrapmvc.com/开始工作:

  • MVC 5,.NET 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")

我需要做什么才能找到许可组件?

1 个答案:

答案 0 :(得分:2)

我遇到了同样的问题并通过引用 Portable.Licensing.dll

修复了它