Server Error in '/' Application.

Value cannot be null.
Parameter name: input

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.ArgumentNullException: Value cannot be null.
Parameter name: input

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:


[ArgumentNullException: Value cannot be null.
Parameter name: input]
   System.Text.RegularExpressions.Regex.Replace(String input, String replacement) +8145796
   System.Text.RegularExpressions.Regex.Replace(String input, String pattern, String replacement) +101
   MotoMundi.Web.Controllers.PrestaShopAjaxController.search(String q, String order, Int32 page, String w) +347

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
   System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) +0
   System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) +128
   System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +142
   Castle.MonoRail.Framework.SmartDispatcherController.InvokeMethod(MethodInfo method, IRequest request, IDictionary`2 extraArgs) +92
   Castle.Proxies.Invocations.SmartDispatcherController_InvokeMethod.InvokeMethodOnTarget() +170
   MotoMundi.Common.Interceptors.LoggingIterceptor.Intercept(IInvocation invocation) +2045
   Castle.Proxies.PrestaShopAjaxControllerProxy.InvokeMethod(MethodInfo method, IRequest request, IDictionary`2 extraArgs) +187
   Castle.MonoRail.Framework.Controller.RunActionAndRenderView() +1715
   MotoMundi.Common.Interceptors.LoggingIterceptor.Intercept(IInvocation invocation) +2045
   Castle.MonoRail.Framework.BaseHttpHandler.Process(HttpContext context) +141

[MonoRailException: Error processing MonoRail request. Action Search on controller PrestaShopAjax]
   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