Resolving The System.invalidoperationexception In C Sql Server Connections