StreamReader
constructor expects the file path, not the file content. I guess you're passing file content as string that's why you get exception due to invalid chars in file(may be due to ;
).
All you need is
mySqlConnectionString = Properties.Resources.setupfile;
Also I strongly recommend you to use App.Config file for ConnectionString.