I need something like: 

```
Configuration cf = ConfigurationManager.OpenExeConfiguration("name_of.exe");
ConnectionStringSettingsCollection s = cf.ConnectionStrings;

```

But this gives an error: 

> 
> Cannot implicitly convert type 'ConnectionStringsSection' to 'ConnectionStringsSectionCollection'
> 
> 
> 

When I do: 

```
ConnectionStringSettingsCollection s = ConfigurationManager.ConnectionStrings;

```

There is no error, but I need the first one, because I'm not using the default configuration file. 
So why does the conversion fail in the first case (and not in the second one)? 

EDIT: 
Sorry for confusion but with 'first one' I ment the first code example, not the first connectionstring. For some reason the second code example does cast the connectionsStrings into a ConnectionsStringSettingsCollection, but the first code example does not, that is my problem.