5
Yeni bir umbraco yüklemesi var 4.11.3 Basit bir denetleyici testi yapmaya çalışıyorum ama benim için bir şey ters gitti. Eşleşen şablon içermeyen bir Belge Türü "Demo" oluşturdum. Daha sonra bu Belge türüne göre "Demo" adlı bir içerik öğesi ve bu yapılandırma ayarını değiştir (defaultRenderingEngine -> MVC) Aşağıdaki kodla yeni bir kontrolör ekledim. Burada yapmak için nereyeUmbraco 4.11.3 - Kontrolör tipi geçerli istek belirsiz
The current request for action 'Index' on controller type 'DemoController' is ambiguous between the following action methods:
System.Web.Mvc.ActionResult Index(Umbraco.Web.Models.RenderModel) on type FrontEnd.Controllers.DemoController
System.Web.Mvc.ActionResult Index(Umbraco.Web.Models.RenderModel) on type Umbraco.Web.Mvc.RenderMvcController
Exception Details: System.Reflection.AmbiguousMatchException: The current request for action 'Index' on controller type 'DemoController'
is ambiguous between the following action methods:
System.Web.Mvc.ActionResult Index(Umbraco.Web.Models.RenderModel) on type FrontEnd.Controllers.DemoController
System.Web.Mvc.ActionResult Index(Umbraco.Web.Models.RenderModel) on type Umbraco.Web.Mvc.RenderMvcController
Herhangi bir fikir:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Umbraco.Web.Models;
namespace FrontEnd.Controllers
{
public class DemoController : Umbraco.Web.Mvc.RenderMvcController
{
//
// GET: /Demo/
public ActionResult Index(RenderModel model)
{
return base.Index(model);
}
public ActionResult Demo(RenderModel model)
{
return View(model);
}
}
}
bu hatayı alıyorum? benim kötü -
Teşekkür
oops geçersiz kılmayı tedarik unuttum. Dizin eylem yöntemini geçersiz kılmayı unuttu. Şimdi çalışıyor. – MikeW
Kendi sorunuzu cevaplamayı ve ardından yanıt olarak işaretlemeyi düşünün. –