To make this a bit more clear: Usually you start the quantization problem of free fields within a finite volume in order to avoid trouble with the continuous single-particle momentum spectrum when dealing with the whole \mathbb{R}^3. This is an example for a regularization you will have to deal with a lot in quantum field theory.
The most simple way is to use a cubic box with length L and periodic boundary conditions, i.e., you assume (e.g., for a scalar field) \phi(\vec{x})=\phi(\vec{x}+L \vec{e}_i) with i \in \{1,2,3\}.
Then the plane-wave mode functions are given by
u_{\vec{p}}(\vec{x})=\frac{1}{\sqrt{V}} \exp(\mathrm{i} \vec{p} \cdot \vec{x})
with V=L^3. These functions are orthonormal in the Hilbert space L^2(V) since due to the boundary conditions the momenta can only take the discrete values
\vec{p}=\frac{2 \pi}{L} \vec{n}, \quad \vec{n} \in \mathbb{Z}^3.
This means
\int_{V} \mathrm{d}^3 \vec{x} \; u_{\vec{p}'}^*(\vec{x}) u_{\vec{p}}(\vec{x}) = \frac{1}{V} \int_V \mathrm{d}^3 \vec{x} \exp[\mathrm{i} \vec{x}(\vec{p}-\vec{p}')]=\delta_{\vec{p},\vec{p}'}.
Here, \delta_{\vec{p},\vec{p}'} is a usual Kronecker symbol which is 1 if \vec{p}=\vec{p}' and 0 otherwise, with the momenta running over the above given discrete values.
If you take the limit L \rightarrow \infty the momenta become continuous, i.e., \vec{p} \in \mathbb{R}^3, and you have to normalize the mode functions "as a \delta distribution", i.e., you have to set
u_{\vec{p}}(\vec{x})=\frac{1}{(2 \pi)^{3/2}} \exp(\mathrm{i} \vec{p} \cdot \vec{x}),
so that
\int_{\mathrm{R}^3} \mathrm{d}^3 \vec{x} \; u_{\vec{p'}}^*(\vec{x}) u_{\vec{p}}(\vec{x}) = \frac{1}{(2 \pi)^3} \int_{\mathrm{R}^3} \mathrm{d}^3 \vec{x} \; \exp[\mathrm{i} \vec{x} \cdot (\vec{p}-\vec{p}')]=\delta^{(3)}(\vec{p}-\vec{p}').
Of course plane waves are no normalizable states but generalized states in the sense of distributions!