【发布时间】:2015-09-29 12:25:20
【问题描述】:
让表面控制器正确启动有点麻烦。
public class SocialShareSurfaceController : Umbraco.Web.Mvc.SurfaceController
{
public ActionResult Index()
{
return Content("hello world");
}
}
我正在尝试通过以下 URL 访问控制器:http://website.local/umbraco/surface/SocialShare/Index/
但我收到 404 错误.....如果我将此文件移动到 App_Code 文件夹转到相同的 URL,我会收到此错误
名为“umbraco-surface-SocialShareSurface”的路线已在路线集合中。路由名称必须是唯一的。参数名称:名称
任何想法...
【问题讨论】:
标签: asp.net-mvc asp.net-mvc-4 model-view-controller umbraco7 umbraco6