WebPartPagesWebService.GetWebPartP roperties gives The file is not available. Either the file does not exist or it cannot be edited from its current location.

Hi,

    I am trying to get all web parts from our sharepoint site by calling web service method GetWebPartProperties of WebPartsPages service. The method works fine for the root page (Home Page) but for pages in sub site i get this in the xml node, Outer XML - <WebParts xmlns="http://microsoft.com/sharepoint/webpartpages"><!--The file is not available. Either the file does not exist or it cannot be edited from its current location.--></WebParts>. I am struck here. Please help me understand why i am getting this?

Regards,

Kalim

April 29th, 2014 3:29pm

Hi,

We can do as follows:

1. Mark sure the page URL is correct.

2. Check whether current user has permission to access  the page.

3. Use SPServices to get web part properties.
http://spservices.codeplex.com/wikipage?title=WebPartPages
 
Best Regards

Free Windows Admin Tool Kit Click here and download it now
May 2nd, 2014 5:24am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics