Solution to the "Format of the initialization string does not conform to specification starting at index 0." Exception
1 min read
You are probably using the wrong DbConnection class.
If you are using Access then make sure you use OleDbConnection, not SqlConnection…and vice versa.
Alternatively you could be referencing your MDB file wrong. Here’s the proper way:
public static string ConnectionString = string.Format(ConfigurationManager.ConnectionStrings[“Videos”].ConnectionString, HttpContext.Current.Server.MapPath(”~/”));
Share:
Share on LinkedIn
Quick Share: Your custom post text has been copied to your clipboard! Click the button below to open LinkedIn's share dialog, then paste it.
💡 Tip: LinkedIn will open in a new tab. Use Ctrl+V (or Cmd+V on Mac) to paste your text.
Note: LinkedIn will show the article preview. You can add your custom text above it.