This repository was archived by the owner on May 10, 2020. It is now read-only.
This repository was archived by the owner on May 10, 2020. It is now read-only.
Open
Description
After adding two records to a StorageSet
, during setup of the BrowserServiceProvider
, and calling AddBlazorDB
, getting an IndexOutOfRangeException
:
Here's the full stack trace:
MonoPlatform.ts:70 Uncaught (in promise) Error: System.IndexOutOfRangeException: Index was outside the bounds of the array.
at BlazorDB.Storage.StorageManagerLoad.GetIdFromString (System.String stringToSearch, System.Int32 startFrom) <0x1b9bc28 + 0x0003c> in <64e9d65131cb416192abd90ed76d00cb>:0
at BlazorDB.Storage.StorageManagerLoad.FindIdInSerializedModel (System.String serializedModel) <0x1b9b6c8 + 0x0002a> in <64e9d65131cb416192abd90ed76d00cb>:0
at BlazorDB.Storage.StorageManagerLoad.LoadStringModels (System.Type contextType, System.Collections.Generic.IEnumerable`1[T] storageSets) <0x1b79508 + 0x000ea> in <64e9d65131cb416192abd90ed76d00cb>:0
at BlazorDB.Storage.StorageManagerLoad.LoadContextFromStorageOrCreateNew (Microsoft.Extensions.DependencyInjection.IServiceCollection serviceCollection, System.Type contextType) <0x1af14b0 + 0x0002c> in <64e9d65131cb416192abd90ed76d00cb>:0
at BlazorDB.Storage.StorageManager.LoadContextFromStorageOrCreateNew (Microsoft.Extensions.DependencyInjection.IServiceCollection serviceCollection, System.Type contextType) <0x1af0fa8 + 0x00020> in <64e9d65131cb416192abd90ed76d00cb>:0
at BlazorDB.ServiceCollectionExtensions.RegisterBlazorDb (Microsoft.Extensions.DependencyInjection.IServiceCollection serviceCollection, System.Collections.Generic.IEnumerable`1[T] types) <0x1af08c0 + 0x0004e> in <64e9d65131cb416192abd90ed76d00cb>:0
at BlazorDB.ServiceCollectionExtensions.Scan (Microsoft.Extensions.DependencyInjection.IServiceCollection serviceCollection, System.Reflection.Assembly assembly) <0x1a3c9a0 + 0x00022> in <64e9d65131cb416192abd90ed76d00cb>:0
at BlazorDB.ServiceCollectionExtensions.AddBlazorDB (Microsoft.Extensions.DependencyInjection.IServiceCollection serviceCollection, System.Action`1[T] configure) <0x1a47f28 + 0x0006e> in <64e9d65131cb416192abd90ed76d00cb>:0
at ACMEBlazor.Program+<>c.<Main>b__2_0 (Microsoft.Extensions.DependencyInjection.IServiceCollection services) <0x1a47448 + 0x0003c> in <dbc4da5cd36641039edcb92d67a310f6>:0
at Microsoft.AspNetCore.Blazor.Browser.Services.BrowserServiceProvider..ctor (System.Action`1[T] configure) <0x18c3fd8 + 0x0003a> in <7da830e0eabd429898584695ab9fd9e5>:0
at ACMEBlazor.Program.Main (System.String[] args) <0x18c3928 + 0x00026> in <dbc4da5cd36641039edcb92d67a310f6>:0
at BlazorDB.Storage.StorageManagerLoad.GetIdFromString (System.String stringToSearch, System.Int32 startFrom) <0x1b9bc28 + 0x0003c> in <64e9d65131cb416192abd90ed76d00cb>:0
at BlazorDB.Storage.StorageManagerLoad.FindIdInSerializedModel (System.String serializedModel) <0x1b9b6c8 + 0x0002a> in <64e9d65131cb416192abd90ed76d00cb>:0
at BlazorDB.Storage.StorageManagerLoad.LoadStringModels (System.Type contextType, System.Collections.Generic.IEnumerable`1[T] storageSets) <0x1b79508 + 0x000ea> in <64e9d65131cb416192abd90ed76d00cb>:0
at BlazorDB.Storage.StorageManagerLoad.LoadContextFromStorageOrCreateNew (Microsoft.Extensions.DependencyInjection.IServiceCollection serviceCollection, System.Type contextType) <0x1af14b0 + 0x0002c> in <64e9d65131cb416192abd90ed76d00cb>:0
at BlazorDB.Storage.StorageManager.LoadContextFromStorageOrCreateNew (Microsoft.Extensions.DependencyInjection.IServiceCollection serviceCollection, System.Type contextType) <0x1af0fa8 + 0x00020> in <64e9d65131cb416192abd90ed76d00cb>:0
at BlazorDB.ServiceCollectionExtensions.RegisterBlazorDb (Microsoft.Extensions.DependencyInjection.IServiceCollection serviceCollection, System.Collections.Generic.IEnumerable`1[T] types) <0x1af08c0 + 0x0004e> in <64e9d65131cb416192abd90ed76d00cb>:0
at BlazorDB.ServiceCollectionExtensions.Scan (Microsoft.Extensions.DependencyInjection.IServiceCollection serviceCollection, System.Reflection.Assembly assembly) <0x1a3c9a0 + 0x00022> in <64e9d65131cb416192abd90ed76d00cb>:0
at BlazorDB.ServiceCollectionExtensions.AddBlazorDB (Microsoft.Extensions.DependencyInjection.IServiceCollection serviceCollection, System.Action`1[T] configure) <0x1a47f28 + 0x0006e> in <64e9d65131cb416192abd90ed76d00cb>:0
at ACMEBlazor.Program+<>c.<Main>b__2_0 (Microsoft.Extensions.DependencyInjection.IServiceCollection services) <0x1a47448 + 0x0003c> in <dbc4da5cd36641039edcb92d67a310f6>:0
at Microsoft.AspNetCore.Blazor.Browser.Services.BrowserServiceProvider..ctor (System.Action`1[T] configure) <0x18c3fd8 + 0x0003a> in <7da830e0eabd429898584695ab9fd9e5>:0
at ACMEBlazor.Program.Main (System.String[] args) <0x18c3928 + 0x00026> in <dbc4da5cd36641039edcb92d67a310f6>:0
at Object.callMethod (MonoPlatform.ts:70)
at Object.callEntryPoint (MonoPlatform.ts:47)
at Boot.ts:38
at step (UriHelper.ts:99)
at Object.next (UriHelper.ts:99)
at fulfilled (UriHelper.ts:99)