Sharepoint 2010 - issue creating an activity news feed

Posted on 2013-12-15
Last Modified: 2014-03-05
Wow this is rough...I dont see much on the net ...the samples I do...dont work very well...

I am using this link:

to create an activity newsfeed...everything isd working fine..however the issue I am having is that SPServiceContext and SPContext do not work inside event handlers like the an event reciever ...FeaturedActivated...any ideas?
Question by:GlobaLevel
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
LVL 10

Author Comment

ID: 39720149
LVL 32

Expert Comment

by:Jamie McAllister MVP
ID: 39757956
If you absolutely need SPContext in an Event Handler you can use this approach;
LVL 51

Accepted Solution

Ted Bouskill earned 500 total points
ID: 39758536
I have seen issues with the SPContext and SPServiceContext when the Alternate Access Mapping isn't set correctly.  Especially if someone has been changing the host header mappings in IIS.
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

LVL 10

Author Comment

ID: 39809123
Can you explain what you mean by alternative access mapping and why that is a factor
LVL 32

Expert Comment

by:Jamie McAllister MVP
ID: 39810021
You stated you were using Event Handlers? It's quite normal not to have access to SPContext in an event receiver. AAM doesn't come into it for that scenario.
LVL 10

Author Closing Comment

ID: 39906562

Featured Post

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Summary In SharePoint 2010 it is easy to create custom color themes to jazz up a site. Theme colors can also be created in PowerPoint 2010 with a few clicks. But how do the chosen colors actually look in the SharePoint site? The attached PowerPoint…
SharePoint Designer 2010 has tools and commands to do everything that can be done with web parts in the browser, and then some – except uploading a web part straight into a page that is edited in SPD. So, can it be done? Scenario For a recent pr…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question