I do not understand why it happens, because if I enter the class inside the app_code folder on the website there is no problem, I'm new with c # and mysql I'm sorry if it's silly, on the other hand, the connection string is it okay ?, thanks:)
Pd: it is visual studio 2017.