首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >TwitterBootstrapMVC无法加载文件或程序集'Portable.Licensing,Version=1.0.0.0

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

Stack Overflow用户
提问于 2014-10-04 10:09:16
回答 1查看 458关注 0票数 0

我正在努力让https://www.twitterbootstrapmvc.com/工作:

  • MVC 5,.NET 4.51
  • NuGet 2.85
  • 通过NuGet TwitterBootstrapMVC5安装
  • 按照说明获取许可文件并将其安装在应用程序的根目录中,如所述
  • 核实所有预期的软件包都已安装:

_

代码语言:javascript
复制
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'.

但是,一旦加载包含帮助器的视图,就会得到:

代码语言:javascript
复制
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")

有什么想法,我需要做什么,才能找到授权大会?

EN

回答 1

Stack Overflow用户

发布于 2015-01-22 19:10:39

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

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/26191749

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档