Why would MemoryMappedFile.CreateNew in Global space fail with UnauthorizedAccess even with Visual Studio being run as admin?
Jeff Bailey
0
Reputation points
VS 2019 16.11.24 targeting Framework 4.7.2 Windows 10 Unit tests are failing on a call to MemoryMappedFile.CreateNew("Global/someName") with "System.UnauthorizedAccessException : Access to the path is denied.". Running Visual Studio as admin makes no difference, and this seems to be the only accepted cause for the problem. What else can I look at since that doesn't help? Are there separate privilidges for theUnit Test Session Manager? I can't imagine so. Is there another way for me to isolate the issue? Appreciate any info.