Tell me more ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have a very strange problem.

I need to create a folder in a Document Library in Sharepoint by code, using Dws service. It's working with actual code, but after a IIS restart, it doesn't work anymore. The CreateFolder method returns "ServerFailure" with no details, over and over again. The only thing I can do to make this works, is manually open IE, go to my Sharepoint document library, create a temporary folder and delete it. After this, the CreateFolder works.

I looked in Sharepoint logs and this is what I found (ThreadAbortException):

06/05/2012 15:43:55.44        OWSTIMER.EXE (0x07AC)                     0x0814    SharePoint Foundation         Monitoring                             nasq        Medium                  Entering monitored scope (Timer Job job-timer-locks)       8a648391-232c-4a98-bda4-863f51ce2422
06/05/2012 15:43:55.44        OWSTIMER.EXE (0x07AC)                     0x0814    SharePoint Foundation         Monitoring                             b4ly         Medium                  Leaving Monitored Scope (Timer Job job-timer-locks). Execution Time=4.0341               8a648391-232c-4a98-bda4-863f51ce2422
06/05/2012 15:43:56.06        w3wp.exe (0x020C)                               0x1520    SharePoint Foundation         Monitoring                             nasq        Medium                  Entering monitored scope (Request (POST:http://srv-sharepoint:32656/_vti_bin/Dws.asmx))      
06/05/2012 15:43:56.06        w3wp.exe (0x020C)                               0x1520    SharePoint Foundation         Logging Correlation Data      xmnv       Medium                  Name=Request (POST:http://srv-sharepoint:32656/_vti_bin/Dws.asmx)        61303e43-be86-4345-af91-f75dc3981445
06/05/2012 15:43:56.08        w3wp.exe (0x020C)                               0x1520    SharePoint Foundation         General                                  fbv5         Medium                  SoapAction: "http://schemas.microsoft.com/sharepoint/soap/dws/CreateFolder"        61303e43-be86-4345-af91-f75dc3981445
06/05/2012 15:43:56.08        w3wp.exe (0x020C)                               0x1520    SharePoint Foundation         General                                  fbv6         Medium                  <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Header><ActivityId CorrelationId="64c3657d-ece8-4f93-acef-182ccfd5ccf2" xmlns="http://schemas.microsoft.com/2004/09/ServiceModel/Diagnostics">00000000-0000-0000-4001-0080030000fb</ActivityId></s:Header><s:Body><CreateFolder xmlns="http://schemas.microsoft.com/sharepoint/soap/dws/" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><url>new_dossier/700003-michael5-20120605134355</url></CreateFolder></s:Body></s:Envelope>      61303e43-be86-4345-af91-f75dc3981445
06/05/2012 15:43:56.08        w3wp.exe (0x020C)                               0x1520    SharePoint Foundation         Logging Correlation Data      xmnv       Medium                  Site=/      61303e43-be86-4345-af91-f75dc3981445
06/05/2012 15:43:56.09        w3wp.exe (0x020C)                               0x1520    SharePoint Foundation         General                                  8e2s        Medium                  Unknown SPRequest error occurred. More information: 0x80070005               61303e43-be86-4345-af91-f75dc3981445
06/05/2012 15:43:56.09        w3wp.exe (0x020C)                               0x1520    SharePoint Foundation         General                                  avfx         High                    SOAP exception: System.Threading.ThreadAbortException: Thread was being aborted.     at Microsoft.SharePoint.SoapServer.DwsImpl.CreateFolder(String url)     at Microsoft.SharePoint.SoapServer.Dws.CreateFolder(String url)                61303e43-be86-4345-af91-f75dc3981445
06/05/2012 15:43:56.09        w3wp.exe (0x020C)                               0x1520    SharePoint Foundation         Monitoring                             b4ly         Medium                  Leaving Monitored Scope (Request (POST:http://srv-sharepoint:32656/_vti_bin/Dws.asmx)). Execution Time=27.4021            61303e43-be86-4345-af91-f75dc3981445
06/05/2012 15:43:56.09        w3wp.exe (0x020C)                               0x1544    SharePoint Foundation         Monitoring                             nasq        Medium                  Entering monitored scope (Request (POST:http://srv-sharepoint:32656/_vti_bin/Dws.asmx))      
06/05/2012 15:43:56.09        w3wp.exe (0x020C)                               0x1544    SharePoint Foundation         Logging Correlation Data      xmnv       Medium                  Name=Request (POST:http://srv-sharepoint:32656/_vti_bin/Dws.asmx)        7445bc2b-3dc9-4149-9fa7-999ad1067a89
06/05/2012 15:43:56.09        w3wp.exe (0x020C)                               0x1544    SharePoint Foundation         Monitoring                             b4ly         Medium                  Leaving Monitored Scope (Request (POST:http://srv-sharepoint:32656/_vti_bin/Dws.asmx)). Execution Time=0,7551              7445bc2b-3dc9-4149-9fa7-999ad1067a89
06/05/2012 15:43:56.09        w3wp.exe (0x020C)                               0x1520    SharePoint Foundation         Monitoring                             nasq        Medium                  Entering monitored scope (Request (POST:http://srv-sharepoint:32656/_vti_bin/Dws.asmx))      
06/05/2012 15:43:56.09        w3wp.exe (0x020C)                               0x1520    SharePoint Foundation         Logging Correlation Data      xmnv       Medium                  Name=Request (POST:http://srv-sharepoint:32656/_vti_bin/Dws.asmx)        5788d75c-789b-4999-9998-7dcacfa18d71
06/05/2012 15:43:56.11        w3wp.exe (0x020C)                               0x1520    SharePoint Foundation         General                                  fbv5         Medium                  SoapAction: "http://schemas.microsoft.com/sharepoint/soap/dws/CreateFolder"        5788d75c-789b-4999-9998-7dcacfa18d71
06/05/2012 15:43:56.11        w3wp.exe (0x020C)                               0x1520    SharePoint Foundation         General                                  fbv6         Medium                  <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Header><ActivityId CorrelationId="64c3657d-ece8-4f93-acef-182ccfd5ccf2" xmlns="http://schemas.microsoft.com/2004/09/ServiceModel/Diagnostics">00000000-0000-0000-4001-0080030000fb</ActivityId></s:Header><s:Body><CreateFolder xmlns="http://schemas.microsoft.com/sharepoint/soap/dws/" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><url>new_dossier/178181-test-20120610134355</url></CreateFolder></s:Body></s:Envelope>      5788d75c-789b-4999-9998-7dcacfa18d71
06/05/2012 15:43:56.11        w3wp.exe (0x020C)                               0x1520    SharePoint Foundation         Logging Correlation Data      xmnv       Medium                  Site=/      5788d75c-789b-4999-9998-7dcacfa18d71
06/05/2012 15:43:56.66        w3wp.exe (0x020C)                               0x1520    SharePoint Foundation         Template Cache                     fo1y         Medium                  Releasing ref-counted record 00000000026CC840 and name (unknown) not AddRef'd enough times on this thread. Callstack: owssvr.dll: (unresolved symbol, module offset=00000000000F7B60) at 0x000007FEEA3C7B60 owssvr.dll: (unresolved symbol, module offset=00000000000FCBE0) at 0x000007FEEA3CCBE0 owssvr.dll: (unresolved symbol, module offset=0000000000068F97) at 0x000007FEEA338F97 owssvr.dll: (unresolved symbol, module offset=0000000000082124) at 0x000007FEEA352124 owssvr.dll: (unresolved symbol, module offset=00000000000894EF) at 0x000007FEEA3594EF owssvr.dll: (unresolved symbol, module offset=0000000000089DD4) at 0x000007FEEA359DD4 owssvr.dll: (unresolved symbol, module offset=000000000008D61D) at 0x000007FEEA35D61D owssvr.dll: (unresolved symbol, module offset=000000000008D84F) at 0x000007FEEA3...                5788d75c-789b-4999-9998-7dcacfa18d71
06/05/2012 15:43:56.66*      w3wp.exe (0x020C)                               0x1520    SharePoint Foundation         Template Cache                     fo1y         Medium                  ...5D84F owssvr.dll: (unresolved symbol, module offset=0000000000006C20) at 0x000007FEEA2D6C20 owssvr.dll: (unresolved symbol, module offset=0000000000008ACF) at 0x000007FEEA2D8ACF owssvr.dll: (unresolved symbol, module offset=000000000001039E) at 0x000007FEEA2E039E owssvr.dll: (unresolved symbol, module offset=00000000001D9D73) at 0x000007FEEA4A9D73 stswel.dll: (unresolved symbol, module offset=00000000000B9640) at 0x000007FEF0C99640 stswel.dll: (unresolved symbol, module offset=000000000008FA8E) at 0x000007FEF0C6FA8E stswel.dll: (unresolved symbol, module offset=0000000000095314) at 0x000007FEF0C75314 owssvr.dll: (unresolved symbol, module offset=00000000000BF8A0) at 0x000007FEEA38F8A0 mscorwks.dll: (unresolved symbol, module offset=00000000002BE497) at 0x000007FEF47AE497 Microsoft.SharePoi...             5788d75c-789b-4999-9998-7dcacfa18d71
06/05/2012 15:43:56.66*      w3wp.exe (0x020C)                               0x1520    SharePoint Foundation         Template Cache                     fo1y         Medium                  ...nt.Library.ni.dll: (unresolved symbol, module offset=00000000000E851A) at 0x000007FEEBFD851A Microsoft.SharePoint.ni.dll: (unresolved symbol, module offset=0000000001AA1F3C) at 0x000007FEEEA61F3C Microsoft.SharePoint.ni.dll: (unresolved symbol, module offset=0000000001CF067E) at 0x000007FEEECB067E        5788d75c-789b-4999-9998-7dcacfa18d71
06/05/2012 15:43:56.66        w3wp.exe (0x020C)                               0x1520    SharePoint Foundation         General                                  8kh7        High                    Cannot create folder "new_dossier/178181-test-20120610134355".       5788d75c-789b-4999-9998-7dcacfa18d71
06/05/2012 15:43:56.67        w3wp.exe (0x020C)                               0x1520    SharePoint Foundation         Monitoring                             b4ly         Medium                  Leaving Monitored Scope (Request (POST:http://srv-sharepoint:32656/_vti_bin/Dws.asmx)). Execution Time=566.8515          5788d75c-789b-4999-9998-7dcacfa18d71

I think this is not a timeout problem since the request takes only a few seconds.

My code :

string folderName = Helpers.GetFolderName("178181", "test", DateTime.Now.ToString());
//ex:folderName = "178181-test-20120611113700"
string library = "new_dossier";
string result = "";
try
{
    // Create Folder
    string createResult = DwsService.CreateFolder(library + "/" + folderName);
    Trace.WriteLine("Create Folder Result: " + createResult);
    result = createResult;
}
catch (Exception ex)
{
    result = "error : " + ex.Message;
}
return result;

Any help is welcome. Thanks

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.