This line is causing the "key not found" in the PostEntityImages
collection.
Entity pimage = _context.PostEntityImages["postcreate"];
When I put a break point on that line and put it in the watch window it works fine and that key is present.
UPDATE:
protected override void ExecutePlugin()
{
try
{
Entity pimage = null;
if (_context.PostEntityImages.ContainsKey("postcreate"))
pimage = _context.PostEntityImages["postcreate"];
}
catch (Exception)
{
// Never hits this line
throw;
}
} // When stepping in/over the line assigning pimage, execution will jump to this point, then be caught in the catch block of this methods caller.
UPDATE #2:
While in debug mode, some breakpoints set fine. Other give the error "The following breakpoint cannot be set:"