Oskar Waldebrink

Oskar Waldebrink

  • 2.1k
  • 8
  • 288

When I run my mvc solution from another user it doesn’t connect to sql

Nov 8 2020 2:56 AM
I have created a simple mvc application in Visual Studio. I also created a database using EF Core code first approach. The database has Windows authentication. The connection string I used was Server=(local)\sqlexpress;Database=LibraryEmployeeDB;Trusted_Connection=True; I am supposed to send this project to my professor but when I tried to run the project from a different user on my computer it doesn’t work because I can’t connect to the database with the other user. I tried to change to Windows and Sql authentication and create a new user and add that to the connection string but that didn’t work either. I would be so grateful for any tips on how to solve this problem so that my professor can run the project as it is supposed to. Thank you!

Answers (4)