Logo 
Search:

Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

_Layout issue

  Asked By: Akhila    Date: Mar 31    Category: Sharepoint    Views: 1148

I have created a ASP.Net application under Sharepoint Virtual Directory
_Layout. I am able to run it well but from other workstation are
prompted for Windows Authentication and after providing it get
Permission denied. Any thoughs?

Share: 

 

3 Answers Found

 
Answer #1    Answered By: Chandrabhan Konwar     Answered On: Mar 31

Did you have impersonation with a valid SPS user id turned on for the
application which is running in _layouts?

 
Answer #2    Answered By: Tina Owens     Answered On: Mar 31

Use this around your code block:

WindowsImpersonationContext wic =
WindowsIdentity.Impersonate(IntPtr.Zero); //Revert to the root app pool

*/ do function here /*

wic.Undo(); //Release the app pool

By putting this around your function, you are using the SharePoint
Application pool identity, but be sure to put the Undo() function in
there once it is not necessary to have those rights.

 
Answer #3    Answered By: Tiana Whitaker     Answered On: Mar 31

I am using application  Pool identity as Local System. I am not able to
impersonate my ASP.Net application located under _layout  yet using the
code:

System.Security.Principal.WindowsImpersonationContext wic =
WindowsIdentity.Impersonate(System.IntPtr.Zero);

I get not issues but users from other work station are prompted with
User name and password and not able to log in. Access denied.

 
Didn't find what you were looking for? Find more on _Layout issue Or get search suggestion and latest updates.




Tagged: