When I try to save as basic teamsite in SP2013 I get the following error:
[InvalidOperationException: Error copying temporary solution file to solutions gallery: _catalogs/solutions/test4.wsp]
Microsoft.SharePoint.SPSolutionExporter.ExportWebToGallery(SPWeb web, String solutionFileName, String title, String description, ExportMode exportMode, Boolean includeContent, String workflowTemplateName, String destinationListUrl, Action`1 solutionPostProcessor, Boolean activateSolution) +4119
Microsoft.SharePoint.ApplicationPages.SaveAsTemplatePage.BtnSaveAsTemplate_Click(Object sender, EventArgs e) +446
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +146
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3586
However when I go to _catalogs/solutions/forms/allitems.aspx page I see that the soluton is saved. When I check the temp folder on the server it contains the wsp file. I checked the security on the temp folder and all entries have full control.
What do I miss?