We formulate criteria of applicability of the Faddeev-Popov trick to g
auge theories on manifolds with boundaries. With the example of Euclid
ean Maxwell theory we demonstrate that the path integral is indeed gau
ge independent when these criteria are satisfied, and depends on a gau
ge choice whenever these criteria are violated. (C) 1998 Published by
Elsevier Science B.V.