Forum Discussion
Hugo O. Ornelas
Apr 18, 2023Copper Contributor
ASP.Net Core 6 Web App - Fails to connect to database after published to on-prem IIS
Dear Community, I started to learn .Net core and entity framework, and its great. I built a small webapp as a test with a database (SQL LocalDB) and locally on my dev machine, it works fine. I publ...
expertopinionsa12
Apr 27, 2023Copper Contributor
It sounds like you have encountered a problem while trying to deploy your .NET Core web application with Entity Framework to a Windows 2019 server. Based on the error message you received, it seems that the application is unable to authenticate the NT Authority\System account to access the SQL LocalDB. Verify that the connection string used by your application is correct and points to the correct SQL LocalDB instance. Make sure that you are using the correct server name and database name in your connection string. This is what we usually do in queue at Triotech Systems,