Dofactory.com
Dofactory.com
 Back to list
Views:   4.5K
Replies:  1
Archived

4.5 connection string is empty in VS 2013 Premium

Hello,

Jack might not see one additional comment after his comment.
I have met the same empty connection string problem in VS 2013 Premium version.
Detail information is exactly same to the last article by Archie, so please look into this problem again.

Thank you so much.
MIN HYUN KIM, Dec 08, 2014
Reply 1
Now I come to think of this issue, it may not be a problem of 4.5 framework.
I have changed the index from number to string as below, then it works properly.
Thanks for the reading.

if (conn == null) // index is 1 because 0 = localdb        
        connectionString = ConfigurationManager.ConnectionStrings[1].ConnectionString;
        =>         
        connectionString = ConfigurationManager.ConnectionStrings["Action"].ConnectionString;
MIN HYUN KIM, Dec 09, 2014
Stay Inspired!
Join other developers and designers who have already signed up for our mailing list.
Terms     Privacy     Cookies       Do Not Sell       Licensing      
Made with    in Austin, Texas.  - vsn 44.0.0
© Data & Object Factory, LLC.