Sometimes "Access denied" whilst saving changes to source files on network drive mapping

  • Thread starter Thread starter Gabriel Lozano-Morán
  • Start date Start date
G

Gabriel Lozano-Morán

Once in a while I receive the pop-up "Access denied" when I try to save a
source file of my project. Pressing on the button "Save All" will however
save the source file without problems. The funny thing is that the "Access
denied" doesn't occur with every save.

The source files are located on a network drive mapping (Z:\) that refers to
my user directory on the companies network. There is no source control
provider used or integrated in my Visual Studio .NET IDE and I am the only
who works on these files.

Has anybody experienced the same problem? How can this be solved?

Many thanks

Gabriel Lozano-Morán
 
Result of filemon, seems like Visual Studio .NET gives me at random an
access denied error trying to change the end of file position. I have
noticed that some classes have missing lines at the bottom as well.

11:49:27 devenv.exe:336 IRP_MJ_SET_INFORMATION*
Z:\gabriel\Development\Sogeti\EnterpriseLibrary\Data\DataFactory.cs ACCESS
DENIED Length: 18915

Search on MSDN and on Googles gives me no results.

Gabriel Lozano-Morán
 
I have further narrowed the problem. Looking at filemon I see that
mcshield.exe which is the process for McAfee ActiveShield is causing this
problem. It seems that mcshield sometimes opens an exclusive lock to files I
try to save and that the Visual Studio .NET IDE tries to change the end of
the file position before mcshield closes the handle.

Gabriel Lozano-Morán
 
Back
Top