7

üzerinde bir kamu eylemi yöntemi 'önbellek' bulunamadı actionresult'u kullanırken zaman zaman A public action method 'cache' was not found on controller alıyorum. Burada kodumda hiçbir önbellek tanımlanmamış veya kullanılmamış olmasına rağmen, nereden geldiğini bilmiyorum. telerik mvc grid'in ajax bağında oluyor. İşte ELMAH gelen yığın izlemesiDenetleyici

HTTP Referrer 
/mycontroller/75/myaction 
Path Info 
/mycontroller/cache/b19858cce4adf72d090c2334d5584f06 

StackTrace

System.Web.HttpException (0x80004005): A public action method 'cache' was not found on controller 'myapp.Controllers.MyController'. 
    at System.Web.Mvc.Controller.HandleUnknownAction(String actionName) 
    at System.Web.Mvc.Controller.ExecuteCore() 
    at System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) 
    at System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) 
    at System.Web.Mvc.MvcHandler.<>c__DisplayClass6.<>c__DisplayClassb.<BeginProcessRequest>b__5() 
    at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass1.<MakeVoidDelegate>b__0() 
    at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass8`1.<BeginSynchronous>b__7(IAsyncResult _) 
    at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.End() 
    at System.Web.Mvc.MvcHandler.<>c__DisplayClasse.<EndProcessRequest>b__d() 
    at System.Web.Mvc.SecurityUtil.<GetCallInAppTrustThunk>b__0(Action f) 
    at System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust(Action action) 
    at System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) 
    at System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) 
    at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() 
    at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) 
+1

Çok ilginç, bu muhtemelen forumlarında yayınlamak için iyi bir şeydir, onların ızgarası –

+0

için JS kodunda bir hata olabilir gibi görünüyor Lütfen Ajax Action kodunuzu ekleyin –

cevap

5

Bu tarife uyan bir Chrome hata vardır: çok olduğu bu yüzden diğer tarayıcılarla oluşmaz konu açıklamasına göre http://code.google.com/p/chromium/issues/detail?id=132059 muhtemelen Chrome'un bir şeyler yapması gerekiyor. Ancak, bug henüz doğrulanmadı ve buna neden olabilecek çok sayıda teori var. Chrome ile ilgili olup olmadığını kontrol etmek için birden fazla tarayıcıyla kendinizi test etmenizi öneririm.