I get an “Error: Cannot initialize OLE” when I try to connect to a database? C#
问题 I'm trying to connect to a database via C#, but I'm getting a very unhelpful error message when I do so: "08:44:17: Error: Cannot initialize OLE 08:44:17: Error: Cannot initialize OLE" I've tried looking for a solution, but I've been unsuccessful. I also tried restarting my computer, which didn't help either. I am running SQL Server 2008, and here is the relevant database code: /// <summary> /// Connects to a given database and returns the database connection. /// </summary> /// <param name=