Sites.asmx ExportWeb dataPath requirements?
-
Tuesday, May 15, 2012 7:49 PM
I'm trying to export a site via the ExportWeb method in the Sites web service, but I keep getting an error that the destination could not be found. I've created a blank document library to which I have full control as the destination, but ExportWeb doesn't seem to want to do it. Is there something else I need to do to create & set a viable destination for this option?
All Replies
-
Tuesday, May 15, 2012 9:02 PMModerator
Hi
Could you post how you call the service, including the input parameters that you use ? According to the spec, you have to provide a full path to the location you are saving the site to + the user invoking the service must have write permissions to that location , as you indicated
Regards Bjoern
Blog- Edited by Bjoern H RappMicrosoft Community Contributor, Moderator Tuesday, May 15, 2012 9:06 PM
-
Wednesday, May 16, 2012 1:47 PM
At its simplest, I'm trying:
Sites.ExportWeb("testmigration", "http://<server1>/sites2/sitename",
"http://<server2>/sites/migration/testsite/TempLib", true, true, false, 1024);... where TempLib is an empty, un-templated document library to which I have full control. I'm connecting with credentials from System.Net.CredentialCache.DefaultCredentials. Just for the sake of trying I've also tried adding trailing slashes to the paths and adding a .cab extension to the file name.
-
Wednesday, May 16, 2012 5:35 PM
You can read the thread below it points to the protocol documentation which should help. Also make sure you are logged in as the farm administrator.
Blog | SharePoint Field Notes Dev Tool | ClassMaster
- Marked As Answer by Shimin Huang Sunday, May 27, 2012 12:26 PM

