gpt4 book ai didi

azure - 将 Web 应用程序发布到 Azure 时,访问/obj/Release/net461/win7-x86/PubTmp/Out/被拒绝

转载 作者:行者123 更新时间:2023-12-02 07:24:52 26 4
gpt4 key购买 nike

在作为 WebApp 发布到 Azure 时,它​​给了我很多错误,表示由于访问被拒绝,我无法将文件复制到 Release 文件夹

我尝试删除 bin 和 obj 文件夹并重新构建,但它对我不起作用。我还重新生成了发布配置文件,但仍然没有运气

ErrorUnable to copy file "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\Microsoft.NET.Build.Extensions\net461\lib\System.IO.FileSystem.Primitives.dll" to "D:\MyProject\MyProject.Web\obj\Release\net461\win7-x86\PubTmp\Out\System.IO.FileSystem.Primitives.dll". Access to the path 'D:\MyProject\MyProject.Web\obj\Release\net461\win7-x86\PubTmp\Out\System.IO.FileSystem.Primitives.dll' is denied.

最佳答案

Access to the path 'D:\MyProject\MyProject.Web\obj\Release\net461\win7-x86\PubTmp\Out\System.IO.FileSystem.Primitives.dll' is denied.

根据这个错误信息,这可能涉及很多因素。我们无法直接给您答案来帮助解决此问题,但可以向您分享我的故障排除解决方案。这里有一些方法可以帮助您排除故障。您可以尝试使用这些。

(1) 同时删除 .vsobjbin 文件。然后,以管理员角色重新启动 VS2019。尝试重建项目。

(2) 如果上述方法不起作用,请找到问题文件的属性,检查其权限,并且不要启用只读

希望这些方法可以帮助到你。

关于azure - 将 Web 应用程序发布到 Azure 时,访问/obj/Release/net461/win7-x86/PubTmp/Out/被拒绝,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57093424/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com