Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Asp.NET – connectionString error while trying to connect with Microsoft SQL Server Management Studio (SQLEXPRESS)

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.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

I checked my server name:

enter image description here

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;"
 }
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading