Freelance Project Requests info@CodeDocu.de Software Development in C# WPF Asp.Net Core Vba Excel Word SQL-Server EF Linq, UWP Net
#

: "SQL Server Windows NT - 64 Bit (3912)"
 
If you want to debug a Windows application in Visual Studio with Start, then you may receive an error message that a process is accessing the SQL Server file and therefore the application cannot be started for debugging.
 
In Visual Studio

 
 

Severity

Code

Description

File

Project

Line

Suppression State

Warning

 

Could not copy "C:\_Daten\Desktop\WPF\schichtplaner_git\Schichtplaner\DB_Schichtplaner.mdf" to "bin\Debug\DB_Schichtplaner.mdf". Beginning retry 1 in 1000ms. The process cannot access the file 'bin\Debug\DB_Schichtplaner.mdf' because it is being used by another process. The file is locked by: "SQL Server Windows NT - 64 Bit (3912)"

 

Schichtplaner

 

 

 
Solution:
You need to open server explorer and turn off or turn off the local server >localDB.
The SQL Server for monitoring data accesses the same database at the same time

 
 
Then in the Toolbox window: SQL Server Object Explorer
Mark the SQL Server and turn off disconnect with Context Menu ->Disconnect

 
In Visual Studio
Mobile
»
Error: The file is locked by SQL Server Windows
»
WPF Layout Adorner disable help
»
Visual Studio: How to Debug COM objects
»
Debug.Writeline: Where is the output?

.

Contact for Jobs, Project Requests: raimund.popp@microsoft-programmierer.de