I just *KNEW* I had found a fix for my issue in the forums at
However, I've tried every suggestion made in this thread and *still* get issues in that the 'normal' end user cannot see the form.
I have any overly simple form in the layouts folder with a lable and a table. I can write the Site Title to the label, and need to add rows to the table, one for each Site Owner (Full Control user) found for the site. This form will be available to anyone
with access to the site. However all I get is:
Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
I have confirmed the application pool identity is the correct service account for the farm. Here is the code I'm using; can anyone advise where I'm stepping on my own toes?
protected override void OnInit(EventArgs e)
using (SPSite site = SPContext.Current.Site)
site.AllowUnsafeUpdates = true;
SPWeb web = SPContext.Current.Web;
web.Site.CatchAccessDeniedException = false;
thisSiteTitle.Text = web.Title.ToString();
//BEGINNING OF COPIED FINDSO CODE
writeToEventLog(app, "2", "2");
View Complete Post