I have implemented a SPWebProvisioningProvider class which overrides the Provision method for a custom site definition. If I don't run any code, I get the 'select a template' page when I open up my new site collection. So I noticed some examples stating that you should call props.Web.ApplyWebTemplate. But when I do; the code seems to run into an andless loop calling the provisioning provider again, resulting in a stack overflow exception.
No one else seems to be having this problem, so I guess I'm making a mistake somewhere; but where?
Provisionmethod, and alsowebtemp_<your site>.xmlschema file? – Kai Jan 11 '12 at 10:32