C# - mysql ExecuteNonQuery suddenly crashing -


so c# code started give me error when want storedata.executenonquery

here code:

string constring = @"data source=someip; port=3306; initial catalog=saleskicker; user id=root; password=hurrdurr;integrated security=true;"; mysqlconnection saleskicker; saleskicker = new mysqlconnection(constring);  saleskicker.open();  mysqlcommand storedata = new mysqlcommand("insert saleskicker (bedrijfsname, contpers, telnum, e-mail, land, plaats, postcode)" + "values (@bedrijfsnaam, @contpers, @telnum, @e-mail, @land, @plaats, @postcode)", saleskicker);                  try {                     storedata.parameters.addwithvalue("@bedrijfsnaam", txxbvname.text);                     storedata.parameters.addwithvalue("@contpers", txxcontpersn.text);                     storedata.parameters.addwithvalue("@telnum", convert.toint32(txxtelnr.text));                     storedata.parameters.addwithvalue("@e-mail", txxemail.text);                     storedata.parameters.addwithvalue("@land", txxland.text);                     storedata.parameters.addwithvalue("@plaats", txxplaats.text);                     storedata.parameters.addwithvalue("@postcode", txxpostcode.text);                 } catch (exception)                 {                     messagebox.show("er zijn ongeldige gegevens ingevoerd!");                 }                 storedata.executenonquery();                 saleskicker.close();                 this.navigationservice.navigate(new doelen()); 

this worked fine before gives me this:

enter image description here

what doing wrong here?

this code worked before, must have changed in mean time what?

thanks in advance


Comments

Popular posts from this blog

ios - UITEXTFIELD InputView Uipicker not working in swift -

Hatching array of circles in AutoCAD using c# -