Probably, it's this line:
using (StreamWriter sw = new StreamWriter("NewUser" +sName,".txt", true))
(But double clicking the error message will take you to the right line just to be sure)
And it's probably teh comma that is doing it.
Change:
new StreamWriter("NewUser" +sName,".txt", true))
To:
new StreamWriter("NewUser" +sName+".txt", true))
or better:
string path = string.Format("NewUser{0}.txt", sname);
using (StreamWriter sw = new StreamWriter(path, true))
And you should be fine.
It would be a good idea to use a folder other than the default though: it works in development but tends to fail in production because the application folder is write protected. Better to get used to using a specific data folder which is always read / write instead.