Fixed,
Miroslav - let me know how you prefer it done.
You put one line of code inside?
Or I re-submit the whole thing?
Here the fix:
Inside -> Module1.Controllers.MainRegionController -> CloseViewEventHandler(...)
if (view != null)
{
mainRegion.Remove(view);
-------------------- Add this Line -------------------------------------------
_regionManager.Regions.Remove("MainRegion");
---------------------------------------------------------------------------------
_viewCloseTabLater = null;
}
This was causing the problem on subsequent click.
The error message was:
Message "An exception occurred while creating a region with name 'MainRegion'. The exception was: System.ArgumentException: Region with the given name is already registered: MainRegion\r\n at ....
I did not have to do anything in Module2.
Let me know how you want to proceed.