Hi!
yes B1Connections.connStr contains the development key.
And I tried your code. It always runs into the else condition. Because the value for
System.Environment.GetCommandLineArgs().Length
is 2. And then it crashes at the same place as Diego's code.
Debug information