A generalized self-consistent field approach for polymer networks with a fixed topology is developed. It is shown that the theory reproduces the localization of cross-links, which is characteristic for gels. The theory is then used to study the order-disorder transition in regular networks of end-linked diblock copolymers. Compared to diblock copolymer melts, the transition is shifted towards l...