Lines after AlertAsync don't run

I've got the AlertAsync dialog to show properly, but the code after the dialog (after pressing OK) does not seem to run. I feel like I've followed the examples.

        async void TestingPrompt(string empName)
        {
            //TODO Remove this in Live
            string title = "Just For Testing";
            string prompt = $"Logged In User: {empName}";
            await ShowPrompt(prompt, title);
            var x = 1; // This line doesn't run
            Nav.NavigateTo($"/cc"); // This line doesn't run


        }


        private async Task ShowPrompt(string prompt, string title)
        {
            await DialogService.AlertAsync(prompt, title);
            var x = 1; // This line never runs.
        }




6 Replies

VJ Vinitha Jeyakumar Syncfusion Team September 27, 2022 06:21 AM UTC

Hi Keith,


We have already considered your reported issue "Couldn't execute any codes after calling AlertAsync from DialogService" as a bug from our end and the fix for the issue will be included with our upcoming Vol 3 Main release which is expected to be rolled out on the end of September 2022.

Now you can track the status of the reported issue through the below feedback,

Regards,
Vinitha


VJ Vinitha Jeyakumar Syncfusion Team September 30, 2022 07:35 AM UTC

Hi Keith,

 

We are glad to announce that our Essential Studio 2022 Volume 3 release v20.3.0.47 is rolled out and is available for download under the following link.

 

https://www.syncfusion.com/forums/177858/essential-studio-2022-volume-3-main-release-v20-3-0-47-is-available-for-download

 

We have also included the fix for the issue "Couldn't execute any codes after calling AlertAsync from DialogService" with our Vol 3 Main release version 20.3.47. So please upgrade your package to the latest to resolve the issue from your end.


Samplehttps://www.syncfusion.com/downloads/support/directtrac/general/ze/Dialog_Wasm111605865248


We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you require any further assistance.

 

Regards,          

Vinitha


KA Keith A Price September 30, 2022 04:21 PM UTC

I tried to update (using the extension manager) and got this error (screenshot of just the last part of the log):





PR Padmini Ramamurthy Syncfusion Team October 3, 2022 11:18 AM UTC

Hi Keith,

 

We have checked the error log and we suspect that the extension has already been updated with the latest version from the Visual Studio marketplace on your machine.

 

Could you please check whether the extension has been updated to latest version or not by going to Extensions->Manage Extensions->Installed?

 

If not updated to the latest, please share the below details to check further from our side.

 

 

1. Share the Visual Studio details by going to Help->About Microsoft Visual Studio and clicking the Copy Info button. Then share the info with us.

 

2. Share the error screenshot that occurred when updating the extension, as well as the entire VSIX update log.

 

Please let us know if you have any concerns about this.

 

Regards,

Abishake Dakshinamoorthy



KA Keith A Price October 3, 2022 06:35 PM UTC

I guess I'm confused.

Manage Extensions clearly shows that I do not have the current versions installed. See attached screenshots.

But when I click Update, both extensions do show a dialog saying that the extensions ARE installed. (Though it doesn't actually mention version numbers.)

Thoughts?



Attachment: Syncfusion_errors_76a4642d.rar


AD Abishake Dakshinamoorthy Syncfusion Team October 4, 2022 06:11 AM UTC

Hi Keith A Price,


Thank you for sharing details.


We checked your details and able to replicate this issue from our end. This problem appears when the extension is installed in administrator mode. This was reported to Microsoft. We will keep you updated as soon as they provide a solution.

As of now could you please uninstall all Syncfusion extension and install its again by follow below steps to install extension with latest version from your side?

1. In Visual Studio go to Extension->Manage Extensions->installed and search Syncfusion in search box.

2. Click uninstall button for following Syncfusion extensions Blazor Extensions – Syncfusion, ASP.NET Core Extensions – Syncfusion, WinForms Extensions – Syncfusion and close all Visual Studio instance.

3. VSIX installer is opened and click modify button uninstall process is started.

4. Once uninstallation process completed, uninstall remaining Syncfusion extension by follow step 1 and step 2.

5. Once all Syncfusion extension is uninstalled, download the latest version of Syncfusion Blazor, ASP.NET Core, and WinForms extension from below marketplace link.

Blazor: https://marketplace.visualstudio.com/items?itemName=SyncfusionInc.BlazorVSExtension

ASP.NET Core: https://marketplace.visualstudio.com/items?itemName=SyncfusionInc.ASPNETCoreVSExtensions

WinForms:
https://marketplace.visualstudio.com/items?itemName=SyncfusionInc.WindowsVSExtensions

6. Open a command prompt with admin mode, run below command to install the downloaded extension with admin mode.

Command: {VS Installed location}\Common\IDE\VSIXInstaller.exe /a {VSIX File Path}

Example: "C:\Program Files\Microsoft Visual Studio\2022\Professional\Common7\IDE\VSIXInstaller.exe" /a "Syncfusion Blazor Template Studio.vsix"

Please let us know if you have any concerns about this


Regards,
Abishake Dakshinamoorthy


Loader.
Up arrow icon