Hi,
I have a requirement to create community site whenever a button is clicked in SharePoint 2013.
I do have a publishing site collection under which I am trying to create a Community Site.I thought of solution to save community site as a site template. Once template saved, I could use C# code to create new site from site template.
Whenever I am trying to save community site as template from "Site Settings"> "Save site as template", I am getting an error stating:
Server Error in '/' Application.
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however,
be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application.
This <customErrors> tag should then have its "mode" attribute set to "Off".
Could anyone tell why this error is coming and is it possible to save community site as template and reuse it in C# code or not?
Rahul Mehta SharePoint Professional