Stiefel-Whitney classes of a real vector bundle $(E, \pi, M)$ are defined axiomatically in singular cohomology $H^*(M, \mathbb{Z}/2\mathbb{Z})$ (compare wiki).
Now various books state, that Stiefel-Whitney classes are not represented in de Rham cohomology (e.g. "The Stiefel Whitney classes are not de Rham cohomology classes" compare click).
Why is this the case? Naivly I would think, that the composition of the coefficient homomorphism with the de Rham iso $H^*(M, \mathbb{Z}/2\mathbb{Z}) \rightarrow H^*(M, \mathbb{R}) \rightarrow H_{dR}(M)$ should map Stiefel-Whitney classes on classes of de Rham cohomology satisfying the axioms of Stiefel-Whitney classes. Why does this fail? Can you give a reference?