Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Clicking the "sign in as a different user" link from the system menu in SP 2010 yields an access denied error.

URL is:

\_layouts\closeConnection.aspx?loginasanotheruser=true

any ideas?

share|improve this question
    
Is this a site that was created using the publishing template? –  Lori Jan 19 '12 at 17:17
1  
Are you getting authentication popup when you click on "Sign in as a different user" or is it directly bringing the access denied error? Is it a particular user who is getting access denied error when passing the credentials? –  Deepu Nair Jan 19 '12 at 17:40
1  
Have you tried the other url : /_layouts/accessdenied.aspx?loginasanotheruser=true –  Vamsi Jan 19 '12 at 17:41
1  
Also check to see if the ViewFormsLockDown feature is enabled. It is by default when using the publishing site template. –  Lori Jan 19 '12 at 18:13
1  
The slashes are the wrong way. –  RJ Cuthbertson Aug 14 '13 at 19:41

2 Answers 2

If you have customized the AccessDenied page, this could be a reason:

"For some reason re-login feature (“Sign in as Different user”) is implemented via access denied page. Click on your name in the top right corner and select ‘Sign in as different user’. You will get access denied page. Strange but it is true!! No idea why it is done this way (other than someone took a shortcut approach).

So now, you need to implement the ‘Sign in as different user’ login in your new accessdenied.aspx page"

See more here: http://balajinjl.wordpress.com/2008/06/18/customizing-access-denied-page-in-moss-2007/

share|improve this answer
3  
Please just dont provide the links, by all means paraphrase or express the answer in your own words, so that it will be like adding more credit to this site rather than navigating to another site for answer. Please do follow as per the below link sharepoint.stackexchange.com/help/how-to-answer –  Karthik Jaganathan Oct 16 '13 at 9:55
    
added explanation! –  daniel Oct 17 '13 at 14:41

I had a similar issue. I face a error "Access Denied" when open my aspx page in the popup. Here there is a code:

var dialogOptions = {
    url: '/_layouts/TestFeature/Test.aspx?currentUrl=' + window.location.href + '&selectedIds=' + ids,
    title: 'Test popup',
    allowMaximize: true,
    showClose: true,
    width: 550,
    height: 200
};


SP.UI.ModalDialog.showModalDialog(dialogOptions); 

I killed whole day searching a solution. And the solution was very simple. I had to delete the first '/' in the url!!!

url: '_layouts/TestFeature/Test.aspx?currentUrl=' + 

Maybe it will be helpful for someone.

share|improve this answer
1  
Please create a new question (you can link to this question if you feel they are related) –  Anders Rask Aug 15 '13 at 6:37

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.