You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure if this is the right forum, but I'm having an issue with Prism Regions. When I use Full Page Hot Reload (which I believe is the default in Rider), I encounter the following exception, which in turn breaks hot reload.
1]HotReloadAgent: ERROR: Exception has been thrown by the target of an invocation. [TargetInvocationException]
[1]HotReloadAgent: ERROR: An exception occurred while creating a region with name 'ContentRegion'. The exception was: System.ArgumentException: Region with the given name is already registered: ContentRegion
at Prism.Navigation.Regions.RegionCollection.Add(IRegion region) in D:
....
[1]HotReloadAgent: ERROR: Region with the given name is already registered: ContentRegion [ArgumentException]
This is how I registered the region in XAML <ContentView Grid.Row="1" x:Name="MainRegion" xaml:RegionManager.RegionName="ContentRegion" />
And I tried this in the code-behind, calling it in the constructor of the content page.
This code works when I launch the app but when I trigger the Hot Reload the region fully disappears but the hot reload keeps working with the other elements of the page. Can someone point me in the right direction for this?
Thanks!
Environment:
.NET Version: 9.0.104 -- MAUI
OS Platform: Linux
Rider Version: 2024.3.6
Running on: Real Device
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, everyone!
I'm not sure if this is the right forum, but I'm having an issue with Prism Regions. When I use Full Page Hot Reload (which I believe is the default in Rider), I encounter the following exception, which in turn breaks hot reload.
This is how I registered the region in XAML
<ContentView Grid.Row="1" x:Name="MainRegion" xaml:RegionManager.RegionName="ContentRegion" />
And I tried this in the code-behind, calling it in the constructor of the content page.
This code works when I launch the app but when I trigger the Hot Reload the region fully disappears but the hot reload keeps working with the other elements of the page. Can someone point me in the right direction for this?
Thanks!
Environment:
.NET Version: 9.0.104 -- MAUI
OS Platform: Linux
Rider Version: 2024.3.6
Running on: Real Device
Beta Was this translation helpful? Give feedback.
All reactions