How do I diagnose an access denied on a file operation?
I'm using a clean Win 7 (64-bit) install on a new machine. Almost everything works very smoothly. I have an old development application that contains an embedded 10-year-old+ version of PVCS. For some reason, the "embedded" PVCS portion of this application reports "access denied" on some file operations. (The rest of the application appears to work OK.) The entire application works on Win2000 and XP-Pro and other older systems. As far as I can tell, all files have full access -- and can be manipulated by Explorer. I've tried this with a full Administrator account and also "Run as Administrator". I've tried to figure out how to cause this "access denied" to log something -- in the EventLog? -- but so far have not succeeded. Is there a step-by-step explanation to this kind of diagnosis? How do I turn on the logging of "access denied" on files and/or directories? (As a further wrinkle, the files in question are on the third partition (E:) -- second drive -- and in addition, some accesses from this legacy app have to go through a different drive letter -- using subst to set K: = E: -- I wonder if this is a possible cause. I've tried using shared drives and net use K: to get similar drive-letter equivalence, but the "access denied" results continue.) As to why only the PVCS portion fails, I can only assume that either this component gets invoked in some strange way, or perhaps the old PVCS uses some non-standard access methods which have finally been made obsolete. I'm hoping I can get diagnosis turned on, and perhaps spot a work-around. miniato
July 15th, 2009 9:11pm

I typically use SysInternals Process Monitor for these kind of cases. It will show you all file and registry entries accessed per process and its results. It allows you to filter the Access Denied entries for your program to locate where your issue comes from.You can download Process Monitor from http://technet.microsoft.com/en-us/sysinternals/bb896645.aspxRay
Free Windows Admin Tool Kit Click here and download it now
July 16th, 2009 12:41am

I typically use SysInternals Process Monitor for these kind of cases. It will show you all file and registry entries accessed per process and its results. It allows you to filter the Access Denied entries for your program to locate where your issue comes from.You can download Process Monitor from http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx Ray Thanks, this was very helpful. I was able to zero in on the problem -- which had more to do with the ageing app than with Windows 7 -- and I now have a solution. Nice little utility, and just what I was looking for. Paulminiato
July 23rd, 2009 12:15am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics