tags:

views:

114

answers:

4

I am trying to set a loginPage value on a Sitecore site in the web.config. The file referenced in the loginPage is an Sitecore item, so it is not a psycical page on the server. No matter how i reference to it, it doesnot work. I get one of 2 errors (depending on how i refrecen to the file);

The resource cannot be found. Error executing child request for /sitecore/login. (The path beeing the one i referenced in the web.config)

Any ideas?

A: 

Check security settings on login item. Probably anonymous user don't have access rights to login item

Bylectric
Nope - anonymous does have access right to the login item :(
kastru
+2  A: 

The explanatory comment in web.config says that 'loginPage' attribute should be "The path to the login page to use. Must point to a physical file or a page in a site that does NOT require login." 'Require login' means denied Read permissions for the Anonymous user. This Anonymous user is the one in the domain specified for this site.

For instance, if you want to have login page set for the 'website' site, you should make sure that extranet\Anonymous has read permission to the item you specified.

Hope this helps.

Yan Sklyarenko
+1  A: 

The loginPage attribute is actually a URL, not an item path. Include the full path with extension -- e.g. /MyAccount/Login.aspx

techphoria414
Tried that too - without luck though :-(
kastru
What's the error you get using that? I assume you can access the page directly using that URL?
techphoria414
A: 

Hi cJockey,

Techphoria414 is correct, you need to supply the URL to the login page. Test that you can actually visit the login page while anonymous.

Steve Green