Hi,
I have just download the VB version of the Stock Trader RI and could run the StockTraderRI_Desktop solution without any issues.
Have you made any modifications to the solution that could have generated this exception?
Basically, the exception you are recieving appears when you are trying to remove an element from a region but that element is not present in the region's collection.
This problem can appear when:
Damian Cherubini
http://blogs.southworks.net/dcherubini
I have just download the VB version of the Stock Trader RI and could run the StockTraderRI_Desktop solution without any issues.
Have you made any modifications to the solution that could have generated this exception?
Basically, the exception you are recieving appears when you are trying to remove an element from a region but that element is not present in the region's collection.
This problem can appear when:
- The element was removed from the region before this handler is executed.
- The element was never injected in the region.
-
The element (in this case the OrderCompositeViewModel) implements the IRegionMemberLifetime interface. In this case, the view should be removed using the Deactivate method instead of the Remove method.
Damian Cherubini
http://blogs.southworks.net/dcherubini