I solved the problem, but i dont know how :-)
The problem was my masterpage. If i created a new masterpage, copied all my code to the new mastermage, deletede the old masterpage and renamed the new one to the old name, then everything was working.