Error:

Not allowed to change the 'ConnectionString' property while the connection (state=Connecting).