Click here to Skip to main content
15,888,610 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have click publish in visual studio 2019. But this error occured. How to fix the error file here? and why is this happen?

C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VisualStudio\v16.0\Web\Deploy\Microsoft.Web.Publishing.MSDeploy.Common.targets(55,5): Error : Web deployment task failed. (Access to the path 'C:\Users\Hp\AppData\Local\Temp\WebSitePublish\KalzAgency-1166833207\obj\Debug\AutoScripts\KalzAgency_IncrementalSchemaOnly.dacpac' is denied.)


What I have tried:

I am publish using Azure in Visual Studio 2019.
Posted
Updated 7-Jun-21 5:57am

1 solution

Quote:
Access to the path ... is denied.
Either your user account does not have permission to write to the specified path, or another process has opened the target file, which would prevent other processes from writing to it.

Check the NTFS permissions on the folder and file mentioned. If they look OK, then try restarting your computer. If you still get the error message, then use a tool like Handle[^] to find out which process has locked the file, and then investigate that process to see how you can prevent the problem.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900