Start a new topic
Solved

Contact us form throws exception

Trying to get the contact us form to work but it throws the exception "Parameter count mismatch"

Happens both in my developing environment and on demo.virtocommerce.com, pasted exception is from demo.virtocommerce.com.


[Exception: Operation returned an invalid status code 'InternalServerError'
{"message":"An error has occurred.","exceptionMessage":"Parameter count mismatch.","exceptionType":"System.Reflection.TargetParameterCountException","stackTrace":"   at System.Reflection.RuntimeMethodInfo.InvokeArgumentsCheck(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)\r\n   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)\r\n   at System.Reflection.RuntimePropertyInfo.GetValue(Object obj, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture)\r\n   at System.Reflection.RuntimePropertyInfo.GetValue(Object obj, Object[] index)\r\n   at VirtoCommerce.Platform.Core.Common.ReflectionUtility.<>c__DisplayClass8_0`1.<GetFlatObjectsListWithInterface>b__5(PropertyInfo x) in C:\\Projects\\VirtoCommerce\\vc-community\\VirtoCommerce.Platform.Core\\Common\\ReflectionUtility.cs:line 136\r\n   at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()\r\n   at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()\r\n   at System.Linq.Enumerable.<CastIterator>d__94`1.MoveNext()\r\n   at VirtoCommerce.Platform.Core.Common.ReflectionUtility.GetFlatObjectsListWithInterface[T](Object obj, List`1 resultList) in C:\\Projects\\VirtoCommerce\\vc-community\\VirtoCommerce.Platform.Core\\Common\\ReflectionUtility.cs:line 140\r\n   at VirtoCommerce.Platform.Data.Notifications.LiquidNotificationTemplateResolver.ResolveTemplate(Notification notification) in C:\\Projects\\VirtoCommerce\\vc-community\\VirtoCommerce.Platform.Data.Notifications\\LiquidNotificationTemplateResolver.cs:line 45\r\n   at VirtoCommerce.Platform.Data.Notifications.NotificationManager.ScheduleSendNotification(Notification notification) in C:\\Projects\\VirtoCommerce\\vc-community\\VirtoCommerce.Platform.Data\\Notifications\\NotificationManager.cs:line 68\r\n   at VirtoCommerce.StoreModule.Web.Controllers.Api.StoreModuleController.SendDynamicNotificationAnStoreEmail(SendDynamicNotificationRequest request)\r\n   at lambda_method(Closure , Object , Object[] )\r\n   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass10.<GetExecutor>b__9(Object instance, Object[] methodParameters)\r\n   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.Execute(Object instance, Object[] arguments)\r\n   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Filters.AuthorizationFilterAttribute.<ExecuteAuthorizationFilterAsyncCore>d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Cors.CorsMessageHandler.<SendAsync>d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.HttpServer.<SendAsync>d__0.MoveNext()"}]
   VirtoCommerce.Storefront.AutoRestClients.StoreModuleApi.<SendDynamicNotificationAnStoreEmailWithHttpMessagesAsync>d__11.MoveNext() in C:\Projects\VirtoCommerce\vc-storefront\VirtoCommerce.Storefront\AutoRestClients\StoreModuleApi.cs:1262
1 Comment

This bug was fixed in https://github.com/VirtoCommerce/vc-platform/releases/tag/v2.12.6 platform release.  Our demo is not updated to latest release we will do it today.


1 person likes this
Login or Signup to post a comment