2012-04-29 8 views
0

は既知のバグではないゼロ基準のランタイムをバインドできません、別のアクション内のコードのこの作品は正常に動作私は自分のために取得しています

Unable to bind the runtime of the zero reference 
    Description: An unhandled exception occurred during the execution of the current web request. Examine the stack trace for more information about this error and where it originated in the code. 

    Exception Details: Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: Unable to bind the runtime of the zero reference 

Source Error: 

Line 169:@for (int i = 1; i < 10; i++) 
Line 170:{ 
Line 171: <span>@Ajax.ActionLink((i * 5).ToString(), "Start", new { cost = (i * 5), gameId = Model.IdGame }, AjaxStart)</span> 
Line 172:} 
Line 173: 

[RuntimeBinderException:Неудаетсявыполнитьпривязкиисполняющей нулевойссылке] CallSite.Target(閉鎖、呼び出し場所、 オブジェクト)+66
System.Dynamic.UpdateDelegates.UpdateAndExecute1(呼び出し場所サイト、T0 arg0に)438 ASP._Page_Views_Kamikaze2_TestGamePlay_cshtml.Execute()をпосреды C言語で:プロジェクト\ Igrok56 \ウェブ\ Visual Studioの 2010 \ \ Users \ユーザーユーザー\ドキュメントKamikaze2 \ TestGamePlay.cshtml \ \回数:171
System.Web.WebPages.WebPageBase.ExecutePageHierarchy()272
システム。 Web.Mvc.WebViewPage.ExecutePageHierarchy()67
System.Web.WebPages.StartPage.RunPage()+58
System.Web.WebPages.StartPage.ExecutePageHierarchy()94
System.Web.WebPages.WebPageBase .ExecutePageHierarchy(WebPageContext pageContext、TextWriterライター、WebPageRenderingBase startPage)+172
System.Web.Mvc.RazorView.RenderView(ViewContext viewContext、 たTextWriterライター、インスタンスオブジェクト)574
System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext、たTextWriterライタ)+360
System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContextコンテキスト) 409システム。 Web.Mvc.ControlActionInvoker.InvokeActionResult(ControllerContext controllerContext、ActionResult actionResult)+39
System.Web.Mvc。 <> C_ DisplayClass1c.b _19() 60 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter フィルタ、ResultExecutingContext preContext、のFunc 1 continuation) +391
System.Web.Mvc.<>c__DisplayClass1e.<InvokeActionResultWithFilters>b__1b() +61 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func
1続き)391
System.Web.Mvc。 <> C_ DisplayClass1e.b _1b() +61 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext、IListの1 filters, ActionResult actionResult) +285
System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +830
System.Web.Mvc.Controller.ExecuteCore() +136
System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +232 System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) +39
System.Web.Mvc.<>c__DisplayClassb.<BeginProcessRequest>b__5() +68
System.Web.Mvc.Async.<>c__DisplayClass1.<MakeVoidDelegate>b__0() +44
System.Web.Mvc.Async.<>c__DisplayClass8
1.b__7(たIAsyncResult )+42 System.Web.Mvc.Async.WrappedAsyncResult` 1.End()141 System.Web.Mvc.Async.AsyncResultWrapper.End(たIAsyncResult asyncResult、 Objectタグ)+54
System.Web.Mvc.Async.AsyncResultWrapper.End(たIAsyncResult asyncResult、 Objectタグ)+ 40
System.Web.Mvc。<> c
_DisplayClasse.b_ d()+61
System.Web.Mvc.SecurityUtil.b
_0(操作f)+31 System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust(アクションアクション) +56 System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult)+110
System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest( たIAsyncResult結果)+38
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() 8967757のSystem.Web。 HttpApplication。ExecuteStep(IExecutionStepステップ、ブール& completedSynchronously)は184

答えて

1

このエラーは、モデルがnull

+0

OKですが、何とはどういう意味「私は自分のために取得していますが既知のバグではない」という事実のために発生します? –

関連する問題