Why do I get the error "Object reference not set to an instance of an object"?
Quote:conn.ConnectionString = My.Settings.Database1ConnectionString
conn returns nothing
It is NOT 'conn returns nothing', it is 'conn is nothing' instead. That means your
variable does not contain a reference to a valid (Connection) object.
Probably you are using
before its proper initialization code is called.