- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试实现一个强类型母版页并使用此页面作为示例:
How to create a strongly typed master page using a base controller in ASP.NET MVC
我的主页中有以下声明:
<%@ Master Language="C#" Inherits="System.Web.Mvc.ViewMasterPage<InsTech.ForeSight.Web.Mvc.ModelBase>" %>
当我尝试运行时,我得到:解析器错误消息:无法加载类型 'System.Web.Mvc.ViewMasterPage<InsTech.ForeSight.Web.Mvc.ModelBase>'
我不太确定为什么它找不到类型。当我使用 ViewMasterPage 类时一切正常,但当我尝试使用通用版本时它会崩溃。
任何建议
最佳答案
InsTech.ForeSight.Web.Mvc.ModelBase 是否在另一个程序集中?如果有,是否被引用?
InsTech.ForeSight.Web.Mvc.ModelBase 是抽象的吗?
关于asp.net-mvc - 解析错误 ViewMasterPage<TModel>,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/860412/
我正在尝试实现一个强类型母版页并使用此页面作为示例: How to create a strongly typed master page using a base controller in ASP
我正在 IIS 6.0 上部署一个 Asp.Net MVC 2.0 应用程序。当我请求任何页面时,我收到以下错误。 Parser Error Message: Could not load type
我正在一个 mvc 2 Rc 项目中工作。直到今天早上它都工作正常。早上我收到一条错误消息。 解析器错误消息:类型“System.Web.Mvc.ViewMasterPage”不明确:它可能来自程序集
我是一名优秀的程序员,十分优秀!