I'm afraid that you'll have to convert the web site to web application first. See this link for explanation how to do it.
It might take some effort, but I think the web application format is much easier to work with, so it's definately worth the effort.