I'm using the Caro Library to open the mxd, zoom to an extent, then check the ActiveView's scale so that I can make a decision on how to change the scale. The zooming to extent works as expected, but when I try to access the FocusMap's MapScale, I get the following exception:
An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in FlexiCadastreSOE.dll
Additional information: The data necessary to complete this operation is not yet available. (Exception from HRESULT: 0x8000000A)
After updating the ActiveView's extent, I call refresh on the ActiveView. I also make sure before and after, that the ActiveView is Activated.
Any clue what I need to execute such that the ActiveView is ready to have it's scale checked? I saved the mxd, close it, and reopen, but the problem persists.
Any ideas appreciated. Thanks in advance.