w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Error in connecting aspx.cs to database situated in app_data folder [database connection error]

Have you tried localhost as opposed to (LocalDBv11.0), like this?

objconn.ConnectionString = "Data Source=localhost;Integrated
Security=SSPI;AttachDBFilename=|DataDirectory|test.mdf;User
Instance=true;user id=xyz; password=xyz123; Initial Catalog=TEST";

localhost will use TCP, while (LocalDBv11.0) will use Named Pipes





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.