ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
InLineGrid / Error Return return Json(ModelState.GetErrorsObj());
Title:
B
I
{code}
?
We are trying to make a minidemo using Mvc5MinSetup and Visual Studio 2013. After we copy the code from the following site http://demo.aspnetawesome.com/GridInlineEditDemo and compile it, we get the following error: Error 4 'System.Web.Mvc.ModelStateDictionary' does not contain a definition for 'GetErrorsObj' and no extension method 'GetErrorsObj' accepting a first argument of type 'System.Web.Mvc.ModelStateDictionary' could be found (are you missing a using directive or an assembly reference?) C:\Datos\Mvc5MinSetupInLineGrid\Mvc5MinSetup\Controllers\InlineGridController.cs 71 36 Mvc5MinSetup here you can see the code with error public ActionResult Create(DinnerInput input) { ... return Json(ModelState.GetErrorsObj()); }
Save Changes
Cancel
Juan Equiz
asked at 21 Sep 2015
well, the error message says it quite clearly, it's a compile error. The last line ModelState.GetErrorsObj(), you don't have the extension GetErrorsObj, you can find it in the demo (main demo) in ControllerExtensions.cs (btw, if you have resharper, open the demo hit Alt+Shift+T write "GetErrorsObj" and you will be redirected to ControllerExtensions.cs )
at 21 Sep 2015
Omu
Hi, We already solve the problem, thanks
at 22 Sep 2015
Juan Equiz
Answers
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK