Feeds:
Posts
Comments

Posts Tagged ‘SharePoint’

I had a custom web part that is running code that required elevated privileges and was running within SPSecurity.runWithElevatedPrivileges  as below

 

SPSecurity.RunWithElevatedPrivileges(delegate()

{

   SPSite siteColl = SPContext.Current.Site;

   ….

}

I kept throwing an access denied error.

after some investigation I found the solution at this useful blog.

http://blogs.msdn.com/b/sasohail/archive/2010/10/31/access-denied-within-spsecurity-runwithelevatedprivileges.aspx

 

the problem in short is, I was using a reference to the SPSite obtained from the SPContext. This reference to SPSite was created before the code entered the RunWithElevatedPrivileges block. Therefore, the reference to the SPSite was running under the current user privileges even though it was placed within the RunWithElevatedPrivileges block.

 

The solution is to obtain a new reference to the SPSite created within the RunWithElevatedPrivileges block as shown below.

SPSecurity.RunWithElevatedPrivileges(delegate()
{
    using (SPSite siteColl = new SPSite(SPContext.Current.Site.ID))
    ….

}

Read Full Post »

The new (just released) release of DotNetNuke  (enterprise edition) can now integrate with SharePoint to expose a document library on the internet. More at: http://www.dotnetnuke.com/Resources/Blogs/EntryId/3133/SharePoint-integration-in-DotNetNuke-6.aspx

Read Full Post »

Todd Carter posted a blog about the reason why SharePoint (MOSS 2007 and WSS 3.0) consume very large amounts of memory that could potentially cause memory loss. He also a quick workaround to fix it. This posted received thumbs up from many SharePoint gurus as a “must read”:

http://todd-carter.com/post/2010/02/08/SharePointe28099s-Sasquatch-Memory-Leak.aspx

Read Full Post »

Joel Oleson just posted his advice about whether to use SharePoint 2007 now or wait for better features in SharePoint 2010:   http://www.sharepointjoel.com/Lists/Posts/Post.aspx?List=0cd1a63d%2D183c%2D4fc2%2D8320%2Dba5369008acb&ID=302

Read Full Post »

New Drop of the SharePoint Guidance (January 24, 2010): http://spg.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=39393

Office 2010 and SharePoint Virtual machines (they are over 13GB and require Hyper V to run) : http://www.microsoft.com/downloads/details.aspx?FamilyID=0c51819b-3d40-435c-a103-a5481fe0a0d2&displaylang=en.

Read Full Post »

Very useful list by Chris O’Brien: http://www.sharepointnutsandbolts.com/2009/06/my-checklist-for-optimizing-sharepoint.html

Read Full Post »

Physical topology recommendations for Office SharePoint server : http://technet.microsoft.com/en-us/library/cc298578.aspx

Physical storage recommendations for Office SharePoint server: http://technet.microsoft.com/en-us/library/cc298801.aspx

Recommended SharePoint development books: http://www.zimmergren.net/archive/2009/09/12/sharepoint-books-recommended-reading.aspx

10 Steps to successful SharePoint deployments: http://sharepointmagazine.net/technical/administration/avoid-newbie-mistakes-10-steps-to-successful-sharepoint-deployments?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+SharepointMagazine+%28SharePoint+Magazine%29

SharePoint development techniques: http://www.sharepointnutsandbolts.com/2009/10/my-favorite-sharepoint-2007-development.html?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+ChrisObrien+%28Chris+O%27Brien%27s+blog%29

Read Full Post »

« Newer Posts - Older Posts »