MVC3 get ViewBag報錯解析

2021-06-06 19:34:08 字數 1415 閱讀 4314

mvc3**報如下錯誤

at lambda_method(closure , controllerbase , object )

at system.web.mvc.actionmethoddispatcher.execute(controllerbase controller, object parameters)

at system.web.mvc.reflectedactiondescriptor.execute(controllercontext controllercontext, idictionary`2 parameters)

at system.web.mvc.controlleractioninvoker.invokeactionmethod(controllercontext controllercontext, actiondescriptor actiondescriptor, idictionary`2 parameters)

at system.web.mvc.controlleractioninvoker.<>c__displayclass15.b__12()

at system.web.mvc.controlleractioninvoker.invokeactionmethodfilter(iactionfilter filter, actionexecutingcontext precontext, func`1 continuation)

at system.web.mvc.controlleractioninvoker.<>c__displayclass15.<>c__displayclass17.b__14()

at system.web.mvc.controlleractioninvoker.invokeactionmethodfilter(iactionfilter filter, actionexecutingcontext precontext, func`1 continuation)

at system.web.mvc.controlleractioninvoker.<>c__displayclass15.<>c__displayclass17.b__14()

at system.web.mvc.controlleractioninvoker.invokeactionmethodwithfilters(controllercontext controllercontext, ilist`1 filters, actiondescriptor actiondescriptor, idictionary`2 parameters)

at system.web.mvc.controlleractioninvoker.invokeaction(controllercontext controllercontext, string actionname)

檢查mvc3安裝包,是不是20.9m的檔案,有乙個帶webpagers beta3的安裝包是20.3m。

Mvc學習筆記 3

public actionresult test new student new student new student new student viewdata stuname 張三 viewbag.stuage 22 tempdata stugender 男 return view stulis...

第3周週報

部 門 理工大學 姓 名 蘭柳菲入 職 時 間 7.18 本週已完成工作內容及總結 1.後台登陸頁面設計 2.後台模組版面設計 3.機械人研討會頁面設計 總結 設計方向過於立體化,應該多嘗試平面頁面和其他風格的頁面。創意有餘體驗不足,在使用者互動設計方面過於薄弱,模組設計使用者體驗差。網頁細節也需要...

學習封裝 MVC 3

一 配置載入類 1 建立配置路由 return array ctrl index action index 2 控制器層 1.判斷配置檔案是否存在 2.判斷當前配置是否存在 3.快取配置 載入單一配置 static public conf array static public function g...