Skip to content

Disallowed file accesses #1282

@jyoungman19111

Description

@jyoungman19111

I have an msbuild project that is getting an error when creating a pdb file. How can I fix this? Thanks.

PS D:\Test\Code\src\oss\NtRegistrySupport> bxl /c:config.bc
Microsoft (R) Build Accelerator. Build: 0.1.0-devBuild, Version: [Developer Build]
Copyright (C) Microsoft Corporation. All rights reserved.

[0:04] error DX0064: [Pip07F4EBC59ED32C49, MSBuild.exe (NtRegistrySupport_VS2019 - D:\Test\Code\src\oss\NtRegistrySupport\NtRegistrySupport_VS2019.vcxproj), NtRegistrySupport_VS2019, NtRegistrySupport_VS2019.vcxproj, {}, D:\Test\Code\src\oss\NtRegistrySupport\NtRegistrySupport_VS2019.vcxproj, D:\Test\Code\src\oss\NtRegistrySupport] - failed with exit code 1
NtRegistrySupport.cpp
D:\Test\Code\src\oss\NtRegistrySupport.cpp : fatal error C1041: cannot open program database 'v:\code\win32\Debug\pdb\NtRegistrySupport_d.pdb'; if multiple CL.EXE write to the same .PDB file, please use /FS [D:\Test\Code\src\oss\NtRegistrySupport\NtRegistrySupport_VS2019.vcxproj]
[0:04] error DX0500: [Pip07F4EBC59ED32C49, MSBuild.exe (NtRegistrySupport_VS2019 - D:\Test\Code\src\oss\NtRegistrySupport\NtRegistrySupport_VS2019.vcxproj), NtRegistrySupport_VS2019, NtRegistrySupport_VS2019.vcxproj, {}] - Disallowed file accesses were detected (R = read, W = write):
Disallowed file accesses performed by: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.28.29333\bin\HostX86\x86\CL.exe
W v:\code\win32\Debug\pdb\NtRegistrySupport_d.pdb

W = Write
[0:04] 100.00% Processes:[1 done (0 hit), 0 succeeded, 1 failed, 0 skipped, 0 executing, 0 waiting]
[0:04] -- Cache savings: 0.00% of 1 included processes. 0 excluded via filtering.
Build FAILED
Log Directory: D:\Test\Code\src\oss\NtRegistrySupport\Out\Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions