Event is already tracked exception thrown when click on edit/add in WebAssembly

Hello,

when Try to modify or Add a row in grid throw this error:

THIS IS MY RAZOR PAGE:

@page "/paziente"

@layout MainLayout


<h3>Paziente</h3>

<small>Aggiungi Paziente.</small>

<div class="form-group">

    <a class="btn btn-success" rel='nofollow' href="paziente/create"><i class="oi oi-plus"></i> Crea Nuovo</a>

</div>

<br>

<div class="col-lg-12 control-section">

    <div class="content-wrapper">

        <div class="row">

            @*<SfGrid DataSource="@pazientes" AllowPaging="true" Toolbar="@(new List<string>() { "Add", "Edit", "Delete", "Update", "Cancel" })" Height ="315">

                <GridEditSettings AllowAdding="true" AllowEditing="true" AllowDeleting="true" Mode="EditMode.Dialog"></GridEditSettings>

                <GridEvents OnActionBegin="OnBeginHandler" TValue="Paziente"></GridEvents>

                <GridColumns>

                <GridColumn Field=@nameof(Paziente.Id) HeaderText="ID" IsPrimaryKey="true" Width="50"></GridColumn>

                <GridColumn Field=@nameof(Paziente.Cognome) HeaderText="Cognome" ValidationRules="@(new ValidationRules{ Required=true})" Width="100"></GridColumn>

                <GridColumn Field=@nameof(Paziente.Nome) HeaderText="Nome" ValidationRules="@(new ValidationRules{ Required=true})" Width="0"></GridColumn>

                </GridColumns>

                </SfGrid>*@

            <SfGrid TValue="Paziente" AllowPaging="true" Toolbar="@(new List<string>() { "Add", "Edit", "Delete", "Update", "Cancel" })" Height ="315">

                <SfDataManager Url="/api/Paziente" Adaptor="Adaptors.WebApiAdaptor"></SfDataManager>

                <GridEditSettings AllowAdding="true" AllowEditing="true" AllowDeleting="true" Mode="EditMode.Dialog"></GridEditSettings>

                <GridColumns>

                    <GridColumn Field="@nameof(Paziente.Id)" IsPrimaryKey="true" Visible="false"></GridColumn>

                    <GridColumn Field="@nameof(Paziente.Cognome)" Width="150"></GridColumn>

                    <GridColumn Field="@nameof(Paziente.Nome)" Width="150"></GridColumn>

                    <GridColumn Field="@nameof(Paziente.Cellulare)" Width="90" TextAlign="TextAlign.Right"></GridColumn>


                </GridColumns>

            </SfGrid>

        </div>

    </div>

</div>


THIS IS EXCEPTION

crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]

      Unhandled exception rendering component: Event 94 is already tracked

      Error: Event 94 is already tracked

          at e.add (https://localhost:44370/_framework/blazor.webassembly.js:1:42463)

          at e.setListener (https://localhost:44370/_framework/blazor.webassembly.js:1:40697)

          at e.applyAttribute (https://localhost:44370/_framework/blazor.webassembly.js:1:36864)

          at e.insertElement (https://localhost:44370/_framework/blazor.webassembly.js:1:35698)

          at e.insertFrame (https://localhost:44370/_framework/blazor.webassembly.js:1:34569)

          at e.insertFrameRange (https://localhost:44370/_framework/blazor.webassembly.js:1:38690)

          at e.insertElement (https://localhost:44370/_framework/blazor.webassembly.js:1:35655)

          at e.insertFrame (https://localhost:44370/_framework/blazor.webassembly.js:1:34569)

          at e.applyEdits (https://localhost:44370/_framework/blazor.webassembly.js:1:32955)

          at e.updateComponent (https://localhost:44370/_framework/blazor.webassembly.js:1:32271)

Microsoft.JSInterop.JSException: Event 94 is already tracked

Error: Event 94 is already tracked

    at e.add (https://localhost:44370/_framework/blazor.webassembly.js:1:42463)

    at e.setListener (https://localhost:44370/_framework/blazor.webassembly.js:1:40697)

    at e.applyAttribute (https://localhost:44370/_framework/blazor.webassembly.js:1:36864)

    at e.insertElement (https://localhost:44370/_framework/blazor.webassembly.js:1:35698)

    at e.insertFrame (https://localhost:44370/_framework/blazor.webassembly.js:1:34569)

    at e.insertFrameRange (https://localhost:44370/_framework/blazor.webassembly.js:1:38690)

    at e.insertElement (https://localhost:44370/_framework/blazor.webassembly.js:1:35655)

    at e.insertFrame (https://localhost:44370/_framework/blazor.webassembly.js:1:34569)

    at e.applyEdits (https://localhost:44370/_framework/blazor.webassembly.js:1:32955)

    at e.updateComponent (https://localhost:44370/_framework/blazor.webassembly.js:1:32271)

   at Microsoft.JSInterop.WebAssembly.WebAssemblyJSRuntime.InvokeUnmarshalled[Int32,RenderBatch,Object,Object](String identifier, Int32 arg0, RenderBatch arg1, Object arg2, Int64 targetInstanceId)

   at Microsoft.JSInterop.WebAssembly.WebAssemblyJSRuntime.InvokeUnmarshalled[Int32,RenderBatch,Object](String identifier, Int32 arg0, RenderBatch arg1)

   at Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer.UpdateDisplayAsync(RenderBatch& batch)

   at Microsoft.AspNetCore.Components.RenderTree.Renderer.ProcessRenderQueue()

d.printErr @ blazor.webassembly.js:1

d.preRun.push.window.Blazor._internal.dotNetCriticalError @ blazor.webassembly.js:1

w @ blazor.webassembly.js:1

_mono_wasm_invoke_js_blazor @ dotnet.5.0.15.js:1

$do_icall @ 00aba242:0x194e4e

$do_icall_wrapper @ 00aba242:0x79df9

$interp_exec_method @ 00aba242:0x44ad3

$interp_runtime_invoke @ 00aba242:0x12efff

$mono_jit_runtime_invoke @ 00aba242:0x118e5f

$do_runtime_invoke @ 00aba242:0x79d42

$mono_runtime_invoke_checked @ 00aba242:0xf65d

$mono_runtime_try_invoke_array @ 00aba242:0x10e831

$ves_icall_InternalInvoke @ 00aba242:0xed492

$ves_icall_InternalInvoke_raw @ 00aba242:0xecf57

$do_icall @ 00aba242:0x194ddb

$do_icall_wrapper @ 00aba242:0x79df9

$interp_exec_method @ 00aba242:0x44ad3

$interp_runtime_invoke @ 00aba242:0x12efff

$mono_jit_runtime_invoke @ 00aba242:0x118e5f

$do_runtime_invoke @ 00aba242:0x79d42

$mono_runtime_try_invoke @ 00aba242:0x12982

$mono_runtime_invoke @ 00aba242:0x10ec2b

$mono_wasm_invoke_method @ 00aba242:0x108e48

Module._mono_wasm_invoke_method @ dotnet.5.0.15.js:1

call_method @ dotnet.5.0.15.js:1

(anonymous) @ dotnet.5.0.15.js:1

beginInvokeDotNetFromJS @ blazor.webassembly.js:1

h @ blazor.webassembly.js:1

e.invokeMethodAsync @ blazor.webassembly.js:1

(anonymous) @ blazor.webassembly.js:1

invokeWhenHeapUnlocked @ blazor.webassembly.js:1

(anonymous) @ blazor.webassembly.js:1

t.dispatchEvent @ blazor.webassembly.js:1

(anonymous) @ blazor.webassembly.js:1

(anonymous) @ blazor.webassembly.js:1

e.onGlobalEvent @ blazor.webassembly.js:1

t.focusContent @ syncfusion-blazor.min.js:19

open @ syncfusion-blazor.min.js:19

e.blazorCallback @ syncfusion-blazor.min.js:1

e.notify @ syncfusion-blazor.min.js:1

e.trigger @ syncfusion-blazor.min.js:1

t.show @ syncfusion-blazor.min.js:1

t.show @ syncfusion-blazor.min.js:19

show @ syncfusion-blazor.min.js:19

invokeJSFromDotNet @ blazor.webassembly.js:1

w @ blazor.webassembly.js:1

_mono_wasm_invoke_js_blazor @ dotnet.5.0.15.js:1

$do_icall @ 00aba242:0x194e4e

$do_icall_wrapper @ 00aba242:0x79df9

$interp_exec_method @ 00aba242:0x44ad3

$interp_runtime_invoke @ 00aba242:0x12efff

$mono_jit_runtime_invoke @ 00aba242:0x118e5f

$do_runtime_invoke @ 00aba242:0x79d42

$mono_runtime_invoke_checked @ 00aba242:0xf65d

$mono_runtime_try_invoke_array @ 00aba242:0x10e831

$ves_icall_InternalInvoke @ 00aba242:0xed492

$ves_icall_InternalInvoke_raw @ 00aba242:0xecf57

$do_icall @ 00aba242:0x194ddb

$do_icall_wrapper @ 00aba242:0x79df9

$interp_exec_method @ 00aba242:0x44ad3

$interp_runtime_invoke @ 00aba242:0x12efff

$mono_jit_runtime_invoke @ 00aba242:0x118e5f

$do_runtime_invoke @ 00aba242:0x79d42

$mono_runtime_invoke_checked @ 00aba242:0xf65d

$mono_runtime_try_invoke_array @ 00aba242:0x10e831

$ves_icall_InternalInvoke @ 00aba242:0xed492

$ves_icall_InternalInvoke_raw @ 00aba242:0xecf57

$do_icall @ 00aba242:0x194ddb

$do_icall_wrapper @ 00aba242:0x79df9

$interp_exec_method @ 00aba242:0x44ad3

$interp_runtime_invoke @ 00aba242:0x12efff

$mono_jit_runtime_invoke @ 00aba242:0x118e5f

$do_runtime_invoke @ 00aba242:0x79d42

$mono_runtime_try_invoke @ 00aba242:0x12982

$mono_runtime_invoke @ 00aba242:0x10ec2b

$mono_wasm_invoke_method @ 00aba242:0x108e48

Module._mono_wasm_invoke_method @ dotnet.5.0.15.js:1

call_method @ dotnet.5.0.15.js:1

(anonymous) @ dotnet.5.0.15.js:1

beginInvokeDotNetFromJS @ blazor.webassembly.js:1

h @ blazor.webassembly.js:1

e.invokeMethodAsync @ blazor.webassembly.js:1

s.clickHandler @ syncfusion-blazor.min.js:21



3 Replies

LU Luigi March 11, 2022 06:57 PM UTC

I use net framework 5.0

Syncfusion 19.4.0.55



LU Luigi March 11, 2022 07:06 PM UTC

I solve make an upgrade al project to .net 6

Are this the unique solution ?

Thank



RN Rahul Narayanasamy Syncfusion Team March 14, 2022 06:36 AM UTC

Hi Luigi, 

Greetings from Syncfusion. 

We suspect that the reported problem is a .Net 5.0 framework issue. So kindly resolve the reported problem by upgrading to .Net 6.0 as like you have done. Please get back to us if you need further assistance. 

Regards, 
Rahul 


Loader.
Up arrow icon