asp.net – 运行时从Microsoft.AspNet.WebApi.HelpPage版本4.0.3
发布时间:2020-12-15 23:29:33 所属栏目:asp.Net 来源:网络整理
导读:当我尝试使用版本4.0.30506(不幸的是,我们绑定到这个版本的ASP.NEt Web API现在),我收到以下错误的Microsoft.AspNet.WebApi.HelpPage nuget包.我正在使用 Windows 7和.NET 4.5. Compilation ErrorDescription: An error occurred during the compilation of
当我尝试使用版本4.0.30506(不幸的是,我们绑定到这个版本的ASP.NEt Web API现在),我收到以下错误的Microsoft.AspNet.WebApi.HelpPage nuget包.我正在使用
Windows 7和.NET 4.5.
Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: CS0012: The type 'System.Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Runtime,Version=4.0.0.0,Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a'. Source Error: Line 11: Line 12: // Group APIs by controller Line 13: ILookup<string,ApiDescription> apiGroups = Model.ToLookup(api => api.ActionDescriptor.ControllerDescriptor.ControllerName); Line 14: } Line 15: 据我看到,我有所有正确的参考这个工作.我试图寻找一个System.Runtime程序集,因为它建议,但我找不到我的系统.我已经将声明添加到Index.cshtml的顶部,但没有任何影响. @using System @using System.Runtime 有什么建议导致这个错误? 解决方法
检查你的web.config:
<compilation debug="true" targetFramework="4.5"> <assemblies> <add assembly="System.Runtime,PublicKeyToken=b03f5f7f11d50a3a" /> </assemblies> </compilation> (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- asp.net-mvc-3 – Telerik MVC网格,在运行时从集合或字典中
- 如果您已实施ASP.NET路由,则ASP.NET中的PageMethods无法正常
- asp.net-mvc-5 – EntityFramework.SqlServer.dll中出现’S
- 一个ASP中的Base64加密 解密函数代码
- asp.net-mvc – 如何在Windows Azure网站(asp.net mvc4)上更
- asp.net – BundleTransformer少抱怨“无法找到工厂,创建Ja
- 在经典ASP中对集合进行排序
- 在ASP.NET MVC Core控制器的构造函数中设置ViewBag属性
- asp.net-mvc – 在将站点托管到IIS之后,AngularJS路由无法正
- asp.net-mvc – 使用LINQ to SQL在ASP.NET MVC中建模多对多
推荐文章
站长推荐
- asp.net – 在mod_mono和Apache上的Appdomain回收
- asp.net-core – ASP.Net核心RC1:System.Argume
- asp.net – 创建适合任何屏幕分辨率的母版页
- asp.net – Visual Studio 2015 RC中的界面上的错
- asp.net-web-api – 如何使用OWIN自动主机的web
- asp.net – 无扩展MVC和IIS 8请求过滤
- ASP.NET Core的配置(1):读取配置信息
- asp.net – 如何使用Web服务返回接口或“复杂”值
- asp.net – CLSID为{00024500-0000-0000-C000-00
- asp.net-mvc – 重用MVC arhitecture;有两层UI:
热点阅读