asp.net-mvc-3 – ASP.NET MVC 3 RTM项目中的这个错误是什么?
我创建新的项目ASP.NET MVC 3 RTM和替换引用
使用ASP.NET MVC 3源代码 但是当我再次运行项目时,得到这个例外:
源错误: Line 106: internal static RazorWebSectionGroup GetRazorSection(string virtualPath) { Line 107: // Get the individual sections (we can only use GetSection in medium trust) and then reconstruct the section group Line 108: return new RazorWebSectionGroup() { Line 109: Host = (HostSection)WebConfigurationManager.GetSection(HostSection.SectionName,virtualPath),Line 110: Pages = (RazorPagesSection)WebConfigurationManager.GetSection(RazorPagesSection.SectionName,virtualPath)
解决方法
此错误意味着您的应用程序的一部分正在使用您自己的源代码副本作为参考进行编译,而在运行时,它会在GAC中查找引用程序集.确保删除对GACed版本的MVC 3程序集的所有引用.这包括使用此公钥令牌的web.config文件中的一些内容:31bf3856ad364e35.
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
- 这个ASP.NET功能在哪里记录? <%= string format,params o
- 是否有开源的Asp.net会员管理GUI(如netwebadmin,但在线工作
- asp.net – 是否可以使用具有强类型资源的LabelFor,Validat
- 覆盖单个页面的ASP.NET表单身份验证
- asp.net-mvc – TimeSpan的MVC编辑器模板
- asp.net – Windows Azure – 频繁的协议违规,内容长度不匹
- 剃刀 – 在身份3中创建声明身份
- asp.net-core – 如何让ASP.Net 5应用程序能够使用类库?
- asp.net – 增加IIS7 / Win7 Pro上的最大上传文件大小
- asp.net-mvc – 将我的DbContext包装在Unit of Work类中是个