This project has moved and is read-only. For the latest updates, please go here.

Access is Denied when using webURL: "/"

Jan 14, 2011 at 9:46 AM

I have been using GetListItems successfully for a while now, but I realise that I've been having an odd problem.

When I use the web service call on a page in a sub-site to access a list in the root site using

webURL: "/"

I get a JS error "Access is denied".

If I change the URL to the actual URL of the root (e.g. ""), everything is ticketyboo (aka "it works").

Any ideas??!


Jan 15, 2011 at 5:20 AM
Edited Jan 18, 2011 at 11:07 PM


I think that "/" ought to work. Do you have any permission constraints on that site? Do you have any Alternate Access Mappings in place? (e.g., When you specify "/" is it from a page with a URL like


Jan 17, 2011 at 4:08 PM

The machine name is different, but the SharePoint site is set to use a domain name that points at the server:

if I go to, I get the IIS7 homepage

if I go to, I get the SharePoint homepage

When in SharePoint pages, I am always using URLs that begin with I thought that "/" in a URL meant "use the current path but strip everything back to the first "/" ??

I am an adminsitrator on the site, and my user has access to all sub-sites, lists etc. I can access the list data when using the "http://" style webURL, so something different must be happening when I use "/"

Confused, but not that bothered since it works with the hard-coded "http://" URL...

Jan 18, 2011 at 11:08 PM


I really don't know what's going on, but since you have a workaround, I'm not going to worry about it!