for me it sounds like your are using SQL LocalDB and not a real SQL Server... maybe LocalDB shuts down during Built-process
And only to make sure... your app is not connecting to the Management Studio (you'd called it SQL Server Management 2014)... normally, Visual studio brings a version of LocalDB and that one only runs if VSStudio is started... (afaik)
Maybe you try to install a SQL Server Express edition on your machine and migrate all structures/data to that db-engine... then it should also work with TCP and remotely.
I hope my answer is helpful to you,
Your
Bjoern Peters
If the reply was helpful, please upvote and/or accept it as an answer, as this helps others in the community with similar questions. Thanks!