Visual Studio version: Vs 2026 Insiders [11123.170] (Same issue with Vs 2022 17.14.19)
SonarQube for Visual Studio plugin version: 8.29.0.14599
Programming language you’re coding in: C#
Is connected mode used:
SonarQube Cloud, SonarQube Server, or SonarQube Community Build? (if one of the latter two, which version?):No
And a thorough description of the problem / question:
When I update the nugets and web.config needs to be updated for the Dependent Assemblies, there are times I get an error about web.config can’t be updated because its locked by another process. Using Process Explorer, I have found its the java.exe located in the extension folder under \Sloop\jre\bin\java.exe
If I kill that process and rerun the updates, the web.config can be updated. I have java.exe installed in another located so I’m not sure why its using the extension version, if it makes a difference on the locking or not. Also, I don’t understand why its locked by SonarQube anyways. If there away around this? It is very inconvenient to have to figure what’s locking the file and killing it.
I was adding a new Nuget today, I I noticed the following error:
An error occurred while applying transformation to ‘Web.config’ in project ‘DailyMorningReportSvc’ The process cannot access the file ‘C:\Users\bart.lynn\source\repos\DBR\DailyMorningReportSvc\DailyMorningReportSvc\Web.config’ because it is being used by another process.
The process cannot access the file ‘C:\Users\bart.lynn\source\repos\DBR\DailyMorningReportSvc\DailyMorningReportSvc\Web.config’ because it is being used by another process.
If I go to that file location, its at:
C:\Users\bart.lynn\AppData\Local\Microsoft\VisualStudio\18.0_a5c1ecfd\Extensions\usshj1qk.3wc\Sloop\jre\bin
if I end it (it might take a couple of tries since it comes back), I get a notification in VS:
After that, I can run update-package -reinstall in Package Manager Console and I don’t get an error. If I don’t keep trying to end the Open JDK Platform binary (note: sometimes its shows java.exe), I will get this error running update-package -reinstall:
The other thing I’ve seen that happens that seems to be associated with Open JDK Platform binary is occasionally, when starting a WebApp in Debug mode, the User Access Control (UAC) pops up and the way our corporate network is, I can’t do Allow if it randomly pops up. I can go into Admin By Request and then approve some UAC, but if I’m not in that mode, I can’t. Not sure if its any relationship to my issue but it is definitely the same Java program.