When I try to open a map from either my computer or from a shared folder on a server with IApplication, I got an error showed as "Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)" .
Here is what I did.
private IApplication pParentApp; (Get this object from class constructor)
Private String strPath = "C:\\Documents and Settings\My Documents\MyMap.mxd";
pParentApp.pParentApp.OpenDocument(strPath);
It worked before but not now.
I can manually open the mxd by click on the file name with no problem. I think (or guess) when I manually open it, system sees me as my log_in name, but when the above codes running, it may see the user as ArcObject or something as suspicious user.
Our system security might changed recently thats why it worked before but not anymore (again my guess).
Any idea? any thought?