Server Error in '/' Application.

Input string was not in a correct format.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.FormatException: Input string was not in a correct format.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[FormatException: Input string was not in a correct format.]
   System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +14524616
   System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +172
   System.String.System.IConvertible.ToInt32(IFormatProvider provider) +55
   System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider) +550
   Castle.Components.Binder.DefaultConverter.Convert(Type desiredType, Type inputType, Object input, Boolean& conversionSucceeded) +88

[BindingException: Conversion error: Could not convert parameter with value '474/' to expected type System.Int32]
   Castle.Components.Binder.DefaultConverter.ThrowInformativeException(Type desiredType, Object input, Exception inner) +93
   Castle.Components.Binder.DefaultConverter.Convert(Type desiredType, Type inputType, Object input, Boolean& conversionSucceeded) +167
   Castle.Components.Binder.ArrayConverter.Convert(Type desiredType, Type inputType, Object input, Boolean& conversionSucceeded) +251
   Castle.Components.Binder.DefaultConverter.Convert(Type desiredType, Type inputType, Object input, Boolean& conversionSucceeded) +125
   Castle.Components.Binder.DataBinder.BindParameter(Type desiredType, String paramName, CompositeNode treeRoot) +104

[BindingException: Exception converting param 'categoryId' to System.Int32[]. Check inner exception for details]
   Castle.Components.Binder.DataBinder.BindParameter(Type desiredType, String paramName, CompositeNode treeRoot) +378
   Castle.MonoRail.Framework.SmartDispatcherController.BuildMethodArguments(ParameterInfo[] parameters, IRequest request, IDictionary`2 actionArgs) +641

[MonoRailException: Error building method arguments. Last param analyzed was categoryId with value '']
   Castle.MonoRail.Framework.SmartDispatcherController.BuildMethodArguments(ParameterInfo[] parameters, IRequest request, IDictionary`2 actionArgs) +1552
   Castle.Proxies.Invocations.SmartDispatcherController_BuildMethodArguments.InvokeMethodOnTarget() +156
   MotoMundi.Common.Interceptors.LoggingIterceptor.Intercept(IInvocation invocation) +2045
   Castle.Proxies.ProductControllerProxy.BuildMethodArguments(ParameterInfo[] parameters, IRequest request, IDictionary`2 actionArgs) +227
   Castle.MonoRail.Framework.SmartDispatcherController.InvokeMethod(MethodInfo method, IRequest request, IDictionary`2 extraArgs) +58
   Castle.Proxies.Invocations.SmartDispatcherController_InvokeMethod.InvokeMethodOnTarget() +170
   MotoMundi.Common.Interceptors.LoggingIterceptor.Intercept(IInvocation invocation) +2045
   Castle.Proxies.ProductControllerProxy.InvokeMethod(MethodInfo method, IRequest request, IDictionary`2 extraArgs) +187
   Castle.MonoRail.Framework.Controller.RunActionAndRenderView() +1460
   MotoMundi.Common.Interceptors.LoggingIterceptor.Intercept(IInvocation invocation) +2045
   Castle.MonoRail.Framework.BaseHttpHandler.Process(HttpContext context) +141

[MonoRailException: Error processing MonoRail request. Action ListByCategory on controller Product]
   Castle.MonoRail.Framework.BaseHttpHandler.Process(HttpContext context) +532
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +790
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +195
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +88


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.3650.0