I am trying to make a connection between my Asp.NET project and Microsot SQL Server Managment Studio.
Just following a tutorial from freeCodeCamp : Learn ASP.NET Core MVC (.NET 6) – Full Course.
My problem began in 1:31:51
But I guess my connectionString doesn’t work:
"ConnectionStrings": {
"DefaultConnection": "Server=.\\SQLEXPRESS;Database=Bulky;Trusted_Connection:True;"
}
Error: Format of the initialization string does not conform to specification starting at index 35.
I checked my server name:
I am writing same stuff except different things like server name in the tutorial.
I’d be glad if you can help…
>Solution :
you have : in your Trusted_Connection, change : to =
"ConnectionStrings": {
"DefaultConnection": "Server=.\\SQLEXPRESS;Database=Bulky;Trusted_Connection=True;"
}
