Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Permission cannot accusing(getting)

  Asked By: Haresh    Date: Apr 12    Category: Sharepoint    Views: 928

I am getting a problem in share point that is when I deploy a web part
in wwwroot/bin folder & register in web.config then it gives an error that
is "Permission cannot accused " at that time home page of the site is giving
this error. other page of site are working(setting.aspx,create.aspx..).



2 Answers Found

Answer #1    Answered By: Tom Pruitt     Answered On: Apr 12

If the current user ( say with permission  Reader) cannot access the web  part
add these lines in the code

SPWeb web = SPControl.GetContextWeb(Context);
web.Site.CatchAccessDeniedException = false;

Answer #2    Answered By: Sammie Lancaster     Answered On: Apr 12

for sent the solvation. but its not working . I have
administator,web designer and reader rights but error  comes when i create
bin folder  in wwwroot. when i wrote safe control in web.config and click
save then the error comes to me
please send solution for my problem.

Didn't find what you were looking for? Find more on Permission cannot accusing(getting) Or get search suggestion and latest updates.