On weak and strong solutions of boundary value problems