On the theory of photo- and electroproduction of theN