castle ViewComponent的错误
我老出错误'ComponentReportTempletComponent' could not be found. Was it registered? If you have enabled Windsor Integration, then it's likely that you have forgot to register the view component as a Windsor component. If you are sure you did it, then make sure the name used is the component id or the key passed to ViewComponentDetailsAttribute
ComponentReportTemplet.cs
namespace nbctITD.Components
{
using System;
using Castle.MonoRail.Framework;
public class ComponentReportTemplet:ViewComponent
{
}
}
在views/components/ComponentReportTemplet/default.vm
<h1>hello world</h1>
--------------------编程问答-------------------- 没有注册组件
或确认是否组件ID或传入关键字错误. --------------------编程问答-------------------- 注册 调试 --------------------编程问答-------------------- 你看看是不是在配置文件中配置你的命名空间时写错了
你的命名空间是:nbctITD.Components
补充:.NET技术 , ASP.NET