Fisrt, I want to thank you for your reply. Your link was really interesting and gave me some ideas for further customizations but I couldn't find the answer to my question. You see, I don't need to deploy a multiple web structure, I just want to execute
custom code through activation of my site:
publicclass OrgProvisioningProvider : SPWebProvisioningProvider
publicoverridevoid Provision(Microsoft.SharePoint.SPWebProvisioningProperties props)
But it seems like props.Web had been already disposed (?) or not created yet, by the time I try to use it.
I remind you that's the case only when I'm creating a root web. It works just fine on a subweb creation.