Solved

Sharepoint 2010 - issue creating an activity news feed

Posted on 2013-12-15
7
241 Views
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:
http://blogs.microsoft.co.il/johnnyt/2011/03/26/working-with-sharepoint-2010-user-activity-newsfeed/


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?
0
Comment
Question by:GlobaLevel
  • 3
  • 2
7 Comments
 
LVL 10

Author Comment

by:GlobaLevel
ID: 39720149
anyone?
0
 
LVL 31

Expert Comment

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

http://blogs.msdn.com/b/andrasg/archive/2011/06/27/what-to-do-when-spcontext-is-null-but-you-need-it.aspx
0
 
LVL 51

Accepted Solution

by:
tedbilly 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.
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
LVL 10

Author Comment

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

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.

http://blogs.msdn.com/b/andrasg/archive/2011/06/27/what-to-do-when-spcontext-is-null-but-you-need-it.aspx
0
 
LVL 10

Author Closing Comment

by:GlobaLevel
ID: 39906562
Great
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

708 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now