Cuando cargo una plantilla de importación desde la aplicación me da el siguiente error:
The parameters dictionary contains a null entry for parameter 'destination' of non-nullable type 'Aseinfo.Infrastructure.Data.UploadFileDestination' for method 'System.Web.Mvc.ActionResult UploadDataFile(Aseinfo.Infrastructure.Data.UploadFile, System.String, System.Nullable`1[System.Boolean], System.Nullable`1[System.Boolean], System.Nullable`1[System.Boolean], Aseinfo.Infrastructure.Data.UploadFileDestination, System.Nullable`1[System.Boolean])' in 'Aseinfo.Infrastructure.Controllers.PlantillaImportacionController'. An optional parameter must be a reference type, a nullable type, or be declared as an optional parameter. Nombre del parámetro: parameters
ERRORSHELPABOUT
System.ArgumentException
The parameters dictionary contains a null entry for parameter 'destination' of non-nullable type 'Aseinfo.Infrastructure.Data.UploadFileDestination' for method 'System.Web.Mvc.ActionResult UploadDataFile(Aseinfo.Infrastructure.Data.UploadFile, System.String, System.Nullable`1[System.Boolean], System.Nullable`1[System.Boolean], System.Nullable`1[System.Boolean], Aseinfo.Infrastructure.Data.UploadFileDestination, System.Nullable`1[System.Boolean])' in 'Aseinfo.Infrastructure.Controllers.PlantillaImportacionController'. An optional parameter must be a reference type, a nullable type, or be declared as an optional parameter. Nombre del parámetro: parameters
System.ArgumentException: The parameters dictionary contains a null entry for parameter 'destination' of non-nullable type 'Aseinfo.Infrastructure.Data.UploadFileDestination' for method 'System.Web.Mvc.ActionResult UploadDataFile(Aseinfo.Infrastructure.Data.UploadFile, System.String, System.Nullable`1[System.Boolean], System.Nullable`1[System.Boolean], System.Nullable`1[System.Boolean], Aseinfo.Infrastructure.Data.UploadFileDestination, System.Nullable`1[System.Boolean])' in 'Aseinfo.Infrastructure.Controllers.PlantillaImportacionController'. An optional parameter must be a reference type, a nullable type, or be declared as an optional parameter.
Nombre del parámetro: parameters
en System.Web.Mvc.ActionDescriptor.ExtractParameterFromDictionary(ParameterInfo parameterInfo, IDictionary`2 parameters, MethodInfo methodInfo)
en System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()
en System.Linq.Buffer`1..ctor(IEnumerable`1 source)
en System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
en System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters)
en System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters)
en System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass15.<InvokeActionMethodWithFilters>b__12()
en System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation)
en System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation)
en System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation)
en System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(ControllerContext controllerContext, IList`1 filters, ActionDescriptor actionDescriptor, IDictionary`2 parameters)
en System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName)
Pero si la cargo desde el tool de importación si la carga exitosamente.
El nombre del archivo de importación es: "Servicios Prestados PRAPSA #26.csv"
asked
04 Mar '14, 14:47
Carlos Soria ♦♦
1.2k●123●139●147
accept rate:
60%