I would like to use the \hyperpage command in the beamer class. In my special case I need it for an index. \hyperpage works quite fine in other classes (e.g. article) but not with the following example.
Indeed... I have no idea why that happens. beamer or one the packages it loads must deliberately disable the command... I would guess this is because a) the command is meant for usage in an index which is nothing one would add to a presentation and b) a presentation usually does not have pages but frames.
If you could elaborate a bit on what you plan to do maybe we can find an alternative.