Access is Denied when using webURL: "/"

Jan 14, 2011 at 8: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. "http://my.root.com"), everything is ticketyboo (aka "it works").

Any ideas??!

Thanks,
Alex

Coordinator
Jan 15, 2011 at 4:20 AM
Edited Jan 18, 2011 at 10:07 PM

Alex:

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 http://my.root.com?)

M.

Jan 17, 2011 at 3: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 http://machinename.root.com, I get the IIS7 homepage

if I go to http://alias.root.com, I get the SharePoint homepage

When in SharePoint pages, I am always using URLs that begin with http://alias.root.com. 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...
Alex

Coordinator
Jan 18, 2011 at 10:08 PM

Alex:

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

M.