Hi All,
I was trying to add configuration properties for my widget.
I'm able load and place the widget in a section and while opening configuration i'm getting error and it was showing popup(refer screenshots).
Please look at the above screenshots and here is the error logged in my system.
Event code: 3005 Event message: An unhandled exception has occurred. Event time: 4/3/2019 6:31:14 PM Event time (UTC): 4/3/2019 1:01:14 PM Event ID: 33728ccc97c64a51b297726dbb678587 Event sequence: 63 Event occurrence: 8 Event detail code: 0 Application information: Application domain: /LM/W3SVC/16/ROOT-7-131987685226094598 Trust level: Full Application Virtual Path: / Application Path: E:\Azure\TestCICD\MedioClinic\ Machine name: NARESH Process information: Process ID: 9408 Process name: w3wp.exe Account name: IIS APPPOOL\MedioClinicLive Exception information: Exception type: InvalidOperationException Exception message: Sequence contains no matching element at System.Linq.Enumerable.First[TSource](IEnumerable1 source, Func2 predicate) at Kentico.PageBuilder.Web.Mvc.Internal.KenticoWidgetPropertiesFormController.Index(String typeIdentifier) at lambda_method(Closure , ControllerBase , Object[] ) at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary2 parameters) at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary2 parameters) at System.Web.Mvc.Async.AsyncControllerActionInvoker.
Event code: 3005 Event message: An unhandled exception has occurred. Event time: 4/3/2019 6:31:14 PM Event time (UTC): 4/3/2019 1:01:14 PM Event ID: 33728ccc97c64a51b297726dbb678587 Event sequence: 63 Event occurrence: 8 Event detail code: 0
Application information: Application domain: /LM/W3SVC/16/ROOT-7-131987685226094598 Trust level: Full Application Virtual Path: / Application Path: E:\Azure\TestCICD\MedioClinic\ Machine name: NARESH
Process information: Process ID: 9408 Process name: w3wp.exe Account name: IIS APPPOOL\MedioClinicLive
1 source, Func
2 parameters) at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary
can you share your control code, it may be possible that your are not getting properties in controller.
And also try setting a value for ButtonTarget===>
public string ButtonTarget {get; set;} = "default";
I was getting the "Sequence contains no matching element" exception also when trying to add a configuration property for my widget. I had added "routes.LowercaseUrls = true" in RouteConfig.cs. Removing that line of code resolved the issue.
Please, sign in to be able to submit a new answer.