Can't start app in VS because Service Fabric locked file

Hrvoje Hudo 46 Reputation points
2025-03-24T11:01:41.4433333+00:00

Developing .NET Core (v8) app that's deployed to local Service Fabric cluster (1 node).

App is deployed, but when I do some change in VS and try to start debugger again with F5, build fails because app DLL is locked by running app in the Service Fabric, so i have to manually go to SF and remove the app before i can redeploy/start debugging.

That worked fine before, but with latest few versions of SF and VS, it can't remove the SF app on its own before redeploying it.

Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
1,071 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.