Update database error

Hi

When I update the database by redoing the "Add Database" process and adding a new table, RBS4VS displays an error message in the output and fails to update the database.

System.Runtime.InteropServices.COMException (0x8000FFFF): Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))
   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
   at Microsoft.VisualStudio.Shell.ThreadedWaitDialogHelper.EndWaitDialog(IVsThreadedWaitDialog2 dialog)
   at Radzen.VisualStudio.WizardDialogBase`2.<RunAsync>d__5.MoveNext() in D:\a\radzen-next\radzen-next\Radzen.VisualStudio.Xaml\WizardDialogBase.cs:line 99

Can you fix it?

This isn't a known error and we can't seem to reproduce it.

Nevermind. I was able to reproduce the error. Working on a fix.

1 Like

Hi korchev

I have updated RB4VS to version 1.2.1, and the COMException issue has been resolved.

However, when I update the database using CRUD Scaffolding, the generated pages encounter errors. It seems that the .razor.cs files do not correctly reference the name of the context service.

        [Inject]
        public Service Service { get; set; }

        protected IEnumerable<RadzenBlazorApp1.Models..Country> countries;

        protected RadzenDataGrid<RadzenBlazorApp1.Models..Country> grid0;
        protected override async Task OnInitializedAsync()
        {
            countries = await Service.GetCountries();
        }

Thanks! Should be addressed with the upcoming 1.2.2 release.

1 Like

Hi korchev

I have updated to version 1.2.2, but I have discovered a new issue. It seems that the options set during the initial database connection are not being applied for subsequent updates.

When I unselect the option "Pluralize or singularize generated object names (English)" during the first run, it is not applied in subsequent updates. The files ExportTestController.cs, TestService.cs, TestContext.cs, and the .razor pages are all affected.

Thanks! We will address that with the next release as well.

1 Like