It's working now. I forgot to set the InnerPage style to FLASH. Permission for FlashSlideshowProfile has to be set to Read and Peek. Otherwise, the system goes into a nasty loop and causes a stack overflow exception.