User instances are only supported in SQL Server Express edition:
Editions and supported features - SQL Server 2017 | Microsoft Docs
SQL Server Express User Instances - ADO.NET | Microsoft Docs
If your connection string contains either
, then you're trying to use a user instance. You'll need to manually attach the database to your SQL Server instance instead, and update your connection string accordingly.