Hi guys.
I saved a site as a site template and wanted to apply it to new site collections on my web app programmatically. I followed Waldek Mastykarz blog (http://blog.mastykarz.nl/programmatically-creating-sites-site-collections-custom-web-template) to do it and a curious thing happens: the web template is not found after creating the site collection.
Through the UI I confirmed that the solution was present and activated in the new site collection and readind the logs I also confirmed that all features were correctly installed and activated. Using PowerShell I confirmed that the template is not part of the available templates list and, therefore, the result.
Now, a even more curious thing. If by using the UI I deactivate and activate the solution the web template appears on the list. Can anyone understand and tell me what I'm doing wrong here? Or at least give me an hint... :)
Thanks.