We examine the Dirichlet problem for the Poisson equation and the heat equation in weighted spaces of Kondrat'ev's type on a dihedral domain. The weight is a power of the distance from a distinguished axis and it depends on the order of the derivative. We also prove a priori estimates.