Scripts don´t work

If I reload my Unity, I cant use my scripts.
It says “No MonoBehaviour scripts in the file, or their names do not match the file name”, but there
is a “public class CharacterController2D:MonoBehaviour” and the names in the file are also equal

There are various answers in those links on the issue.