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 [itex]\mathbb{R}^3[/itex]. 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 [itex]L[/itex] and periodic boundary conditions, i.e., you assume (e.g., for a scalar field) [itex]\phi(\vec{x})=\phi(\vec{x}+L \vec{e}_i)[/itex] with [itex]i \in \{1,2,3\}[/itex].
Then the plane-wave mode functions are given by
[tex]u_{\vec{p}}(\vec{x})=\frac{1}{\sqrt{V}} \exp(\mathrm{i} \vec{p} \cdot \vec{x})[/tex]
with [itex]V=L^3[/itex]. These functions are orthonormal in the Hilbert space [itex]L^2(V)[/itex] since due to the boundary conditions the momenta can only take the discrete values
[tex]\vec{p}=\frac{2 \pi}{L} \vec{n}, \quad \vec{n} \in \mathbb{Z}^3.[/tex]
This means
[tex]\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}'}.[/tex]
Here, [itex]\delta_{\vec{p},\vec{p}'}[/itex] is a usual Kronecker symbol which is 1 if [itex]\vec{p}=\vec{p}'[/itex] and [itex]0[/itex] otherwise, with the momenta running over the above given discrete values.
If you take the limit [itex]L \rightarrow \infty[/itex] the momenta become continuous, i.e., [itex]\vec{p} \in \mathbb{R}^3[/itex], and you have to normalize the mode functions "as a [itex]\delta[/itex] distribution", i.e., you have to set
[tex]u_{\vec{p}}(\vec{x})=\frac{1}{(2 \pi)^{3/2}} \exp(\mathrm{i} \vec{p} \cdot \vec{x}),[/tex]
so that
[tex]\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}').[/tex]
Of course plane waves are no normalizable states but generalized states in the sense of distributions!