Problem sending value thru model

2 posts, 0 answers
  1. Eduardo
    Eduardo avatar
    1 posts
    Member since:
    Feb 2016

    Posted 02 Aug Link to this post

    Hi

    When I'm trying to send the model with information in it to the edit view, I get a System.OverflowException : Value was either too large or too small for an Int32

    in the StackTrace I get: 

       en System.Convert.ToInt32(Double value)
       en System.Double.System.IConvertible.ToInt32(IFormatProvider provider)
       en System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider)
       en System.Convert.ChangeType(Object value, Type conversionType)
       en Kendo.Mvc.UI.Fluent.WidgetFactory`1.GetRangeValidationParameter[TValue](IEnumerable`1 validators, String parameter)
       en Kendo.Mvc.UI.Fluent.WidgetFactory`1.NumericTextBoxFor[TValue](Expression`1 expression)
       en ASP._Page_Views_Grupo_Edit_cshtml.Execute() en C:\Users\Pablo.Contreras\Documents\Visual Studio 2015\Projects\Administrativo\Grupos\NaveganteGruposBackEnd\NaveganteGruposBackEnd\Views\Grupo\Edit.cshtml:línea 232
       en System.Web.WebPages.WebPageBase.ExecutePageHierarchy()
       en System.Web.Mvc.WebViewPage.ExecutePageHierarchy()
       en System.Web.WebPages.StartPage.RunPage()
       en System.Web.WebPages.StartPage.ExecutePageHierarchy()
       en System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage)
       en System.Web.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance)
       en System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext, TextWriter writer)
       en System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context)
       en System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult)
       en System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
       en System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)

    In my model the field is int, and I allready try change it to INT32 with no results.

  2. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 04 Aug Link to this post

    Hello,

    Can you please share your markup, model and all related configuration for the applictaion? Thus we can revise your code locally and advise you further.

    Regards,
    Maria Ilieva
    Telerik by Progress
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET MVC is VS 2017 Ready
Back to Top