Can't access community members list in event receiver when item is updated in console application

Hi,
we attached an event receiver to a list in a community site template. In the ItemUpdated event we access different lists from the site. Everything is working fine when we update a list item in the web frontend logged in as Administrator (application pool
identity Administrator).
Updating an list item in a console application running as Administrator triggers the ItemUpdated event and accesses all lists - only the Community Member list can't be accessed.
SPWeb spWeb = properties.OpenWeb();
Guid communityMembersListGuid = new Guid("3b56d08b-be6b-408b-a2aa-c08722ad499b");
SPList communityMembersList = spWeb.Lists[communityMembersListGuid];
We added the Administrator with full access to the list, run the code with RunWithElevatedPrivileges and initialized the spSite with the account-token of the administrator. Nothing works.
Any idea?
Greetings Peter

Hi,
Please try to use the following code blow:
SPWeb spWeb = properties.Web;
SPList communityMembersList = spWeb.Lists["Community Members"];
If the issue still exists, I suggest you debug your code and provide the detail error message for further research.
Best Regards
Dennis Guo
TechNet Community Support

Similar Messages

  • SharePoint 2013 Community members list is not working properly.

    Hello All,
    We have a community site at our office. It is having a discussion list which has almost 2000 discussion. The problem is the members who have raised questions or discussions should get added in community members list. But its not happening. There was only
    11 members were added. The remaining members are not there. So It is showing the wrong top contributors. I really weird due to this issue.
    Please help me.
    Gore T.Richard

    Hi Gore,
    Please try to use the following code to get the members count, then check whether it corrects or not.
    SPWeb web = SPContext.Current.Web;
    SPList Members = web.Lists.TryGetList("Community Members"));
    try
    SPQuery query = new SPQuery();
    query.Query = "<Where><Eq><FieldRef Name="MemberStatusInt"/><Value Type="Integer">1</Value></Eq></Where>";
    SPListItemCollection colection = Members.GetItems(query);
    int membersJoined = colection.Count
    catch (Exception)
    http://sharepoint.stackexchange.com/questions/76973/number-of-memebers-inside-my-community-site-is-wrong
    Or try to reactivate the "community feature" feature and activate "Site Feed" feature at site level.
    If this issue still exists, you can also try to update the latest CU for SharePoint 2013.
    http://blogs.technet.com/b/stefan_gossner/archive/2015/04/14/april-2015-cu-for-sharepoint-2013-has-been-released.aspx
    Best Regards
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How can i access my wish list on my iphone?

    I created a wish list on itunes on my computer but i want to know how can i access the wish list on my iphone itself. can someone help me?

    The Wish List is there on the iPad, it's one of the links below Movies, but it isn't there on the iPhone.
    If you'd like, you can leave feedback for Apple.

  • I recently downloaded the 5.1.1 and all of a sudden the contact icon has disappeared. I can still access my contact list through the phone icon, but I want the contact icon back. How can I reinstall it?

    I recently downloaded the 5.1.1 and all of a sudden the contact icon has disappeared. I can still access my contact list through the phone icon, but I want the contact icon back. How can I reinstall it?

    You can't delete it.  Look on all your screens and inside all your folders.  If you still can't find it go to Settings>General>Reset>Reset Home Screen Layout.  This will restore the home screen to its original configuration but may move other apps around to do so.

  • Cannot access Dynamics XRM from within Event Receiver

    Hello everyone
    I'm struggling with an issue here and I would like to hear some advice from you. The problem is the following:
    I need to do something on Dynamics CRM whenever a document is uploaded to a specific location in SharePoint. I'm using an Event receiver for this purpose and connecting to CRM via the IOrganizationService, like this:
    IOrganizationService service = new OrganizationServiceProxy(serviceUri, null, credentials, null); //service uri is https//serviceUri is something like "https://crmserver/organization/XRMServices/2011/Organization.svc"
    But for some reason I'm unable to execute that line successfully (looks like it times out) from within the Event receiver. However, the same exact piece of code works perfectly fine if executed from a separate console application (i.e., outside the IIS application
    pool) running on the same SharePoint server...I'm confused, do I need to configure anything else on the SharePoint application pool so it let's me access the XRM service?
    More info:
    - It's not credentials issue, even provinding hardcoded it doesn't work
    - Both SharePoint 2013 and Dynamics CRM 2013 are on premises.
    - Integration between SharePoint and Dynamics CRM is done through the CRM List Component, over https, and it's working fine.This is not really important for this but it's just to tell that both servers can comunicate over https.
    I would really like to get some advice on this. Thank you in advance.
    Regards

    Hi,
    Per my understanding, there is an issue when trying to access Dynamic CRM in an Event Receiver.
    As you said, the same code works in a Console Application, it means the code should be OK. To narrow down the issue, I suggest you do as follows:
    1. Please debug this Event Receiver in Visual Studio to see if the Event Receiver is working, what’s more, it will give you more information about how the code works
    or if there is any exception thrown during debugging;
    2. Is it a Sandboxed solution? Sometimes
    the limitation of a Sandboxed solution would interrupt the code execution, you can try to change it to “Farm” solution and make another test;
    3. If the above steps not work for you, please trace the requests using Fiddler when the Event Receiver running, more details there would help you easier to find out
    the root cause of this issue.  
    Thanks 
    Patrick Liang
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • TS2972 i can't access my home sharing in itunes ? :( when i fill up the apple i.d there's a pop-up window "Home sharing could not be activated because an error occurred (5506)" what's with that?

    i can't access my home sharing in itunes ? when i fill up the apple i.d there's a pop-up window "Home sharing could not be activated because an error occurred (5506)" what's with that?

    See:
    Troubleshooting Home Sharing
    Have you looked at the previous discussions listed on the right side of this page under the heading "More Like This"?

  • TS1717 I can't access Itunes Store via my Itunes. When Itunes start, CPU always 100%, I've tried uninstall and reinstall Itunes but it seems to be useless. Please help !!!

    I can't access Itunes Store via my Itunes. When Itunes start, CPU always 100%, I've tried uninstall and reinstall Itunes but it seems to be useless. Please help !!!

    I can't access Itunes Store via my Itunes.
    Is iTunes endlessly saying "Accessing iTunes Store"? Or is something a bit different going on?

  • I can't access my mail,contact,calendars settings on my iPhone after update . i press the icon in setting and it just goes back to home screen.

    i can't access my mail,contact,calendars settings on my iPhone after update . i press the icon in setting and it just goes back to home screen.

    i have the same problem with my iphone 4.and when synching with itunes it says "can't synch contacts with iphone because iphone is using contacts. close contacts on iphone and synch again."

  • I can not access Itunes Store from my computer. When I run the dianostic I get a red light that says "Secure Link to the Itunes Store Failed".

    I can not access Itunes Store from my computer.
    When I run the diagnostic tool for network connectivity, my network connects but I get a Red light that says "SECURE LINK TO THE ITUNES STORE FAILED".
    Can anyone help me on this problem?

    ITunes won't connect all I get is the "accessing iTunes store......". With the bar scrolling but no connection.
    With those symptoms, I'd try the following document:
    Apple software on Windows: May see performance issues and blank iTunes Store
    (If there's a SpeedBit LSP showing up in Autoruns, it's usually best to just uninstall your SpeedBit Video Accelerator.)

  • I can not access i unes in my PC. i tunes will not update

    I can not access i unes in my PC. i tunes will not update. So I can not sync my i pod.  my I pod will not update.

    I can not access i unes in my PC. i tunes will not update.
    Could you walk us through what happens in some more detail, please?

  • Since the update, I can't access my photo albums, suggestions ? Also when I get reminders, they come in 2's .  Frustrating.

    Since the update, I can't access my photo albums, suggestions ?
    Also when I get reminders, they come in 2's .  Frustrating ...  It maybe that iCloud thing....Help!!!

    I think I figured out the reminder thing.... I had it checked at the sync page... said it wasn't necessary so I un checked it..... now to figure out how to access my photo albums from my phone and I'll be happy....

  • Can i bring back my iphones ios5.0.1 when i already updated it to ios5.1?

    can i bring back my iphones ios5.0.1 when i already updated it to ios5.1?

    No. You can not downgrade iOS.
    Why do you want to? Let's try to solve whatever problem you're having instead.
    If youre reason involves hacking or jailbreaking, you're out of luck.

  • If I have multiple playlists, can I access a later list by reversing instead of going through all the lists?

    IF I have multiple playlists, can I access a later playlist by reversing?

    It's not clear (to me anyway) what you mean.
    However, if you mean that you click the Select (centre) button to go into a Playlist, and now you want to go back the the list of Playlists instead of back to the Main Menu, you simply need to press-and-release the Menu button.
    Long press on the Menu button - iPod returns to the Main Menu
    Short press on the Menu button - iPod returns to the previous menu.

  • Can not access communication channels

    We could not access Communication channel & other configuration objects
    from integration builder and we are getting the following error,
    Attempt to access application REPOSITORY using Http Method Invocation
    (HMI) failed. Detailed information: Invoking ROA method "ReadObjects"
    via HMI ... FAILED due to following exception: Message: Connection to
    system REPOSITORY using application REPOSITORY lost. Detailed
    information: Error
    accessing "http://<host>:50300/rep/remoteobjectaccess/int?container=ejb" with user "PIDIRUSER". Response code is 302,
    response message is "Found" Stacktrace:
    com.sap.aii.utilxi.hmi.api.HmiCoreException: Connection to system
    REPOSITORY using application REPOSITORY lost. Detailed information:
    Error
    accessing "http://<host>:50300/rep/remoteobjectaccess/int?container=ejb" with user "PIDIRUSER". Response code is 302,
    response message is "Found" at
    com.sap.aii.utilxi.hmi.api.HmiCoreException.newCommunicationError
    (HmiCoreException.java:83) at
    com.sap.aii.utilxi.hmi.api.HmiHttpClientImpl.sendRequestAndReceiveResponseViaHttp(HmiHttpClientImpl.java:195) at
    com.sap.aii.utilxi.hmi.api.HmiHttpClientImpl.sendRequestAndReceiveResponse(HmiHttpClientImpl.java:105) at
    com.sap.aii.utilxi.hmi.api.HmiClientAdapter.invokeMethod
    (HmiClientAdapter.java:88) at
    com.sap.aii.ib.core.roa.RoaServiceImpl.readObjectsImpl
    (RoaServiceImpl.java:198) at
    com.sap.aii.ib.core.roa.RoaServiceImpl.readObjects
    (RoaServiceImpl.java:329) at
    com.sap.aii.ib.server.cpa.AdapterMDCache.readObject
    (AdapterMDCache.java:219) at
    com.sap.aii.ib.server.cpa.AdapterMDCache.actualize
    (AdapterMDCache.java:209) at
    com.sap.aii.utilxi.misc.api.LRUMapBasedCache.get
    (LRUMapBasedCache.java:34) at
    com.sap.aii.ib.server.cpa.AdapterMDCache.get(AdapterMDCache.java:171)
    at com.sap.aii.utilxi.misc.api.Cache.get(Cache.java:40) at
    com.sap.aii.utilxi.misc.api.Cache.get(Cache.java:40) at
    com.sap.aii.ib.sbeans.misc.MiscServicesBean.getAdapterMetadata
    (MiscServicesBean.java:238) at
    com.sap.aii.ib.sbeans.misc.MiscServicesRemoteObjectImpl1_0.getAdapterMetadata(MiscServicesRemoteObjectImpl1_0.java:2028) at
    com.sap.aii.ib.sbeans.misc.MiscServicesRemoteObjectImpl1_0p4_Skel.dispatch(MiscServicesRemoteObjectImpl1_0p4_Skel.java:285) at
    com.sap.engine.services.rmi_p4.DispatchImpl._runInternal
    (DispatchImpl.java:320) at
    com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:198)
    at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request
    (P4SessionProcessor.java:129) at
    com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33) at
    com.sap.engine.core.cluster.impl6.session.MessageRunner.run
    (MessageRunner.java:41) at
    com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
    at java.security.AccessController.doPrivileged(Native Method) at
    com.sap.engine.core.thread.impl3.SingleThread.execute
    (SingleThread.java:100) at
    com.sap.engine.core.thread.impl3.SingleThread.run
    (SingleThread.java:170)
    Our Internal investigation reveals that the URL
    http://<host>:50300/rep/remoteobjectaccess/int?container=ejb is redirecting the requester to HTTPS and Integration
    builder is not able to handle the redirection. We tried to login to the
    above url in HTTPs and it does not work. There is no service user
    locked in the system.
    We are not even able to access exchangeProfile throught HTTP http://<host>:50300/exchangeProfile. But we could access exchange profile parameters from ABAP system using the function module  EXCHANGE_PROFILE_GET_PARAMETER
    Have anyone encountered this problem before?
    Regards,
    Arul

    Try using any other user id like PIISUSER and check?
    ---Satish

  • Can't access the Internet via Mobile Data & Wifi after IOS 6 update.

    Hi Hi,
    Are facing the same problem that I'm facing? After updating the iOS 6 my ipad2 can't access to the Internet vai both data and wifi.
    I event tried activity my iPhone 4S hotspot to allow my IPad2 to connect and is not working too.

    Hi Ralph,
    Thanks for the advice and tips. The wifi problem has been sovled by not on the mobile data.
    When I'm using the mobile date to access the network it will not work. I have tried to rebooth, tuning the mobile data option and the data roaming on and off. Still does't not work.

Maybe you are looking for

  • Acrobat9 for 64 bit Vista, program locks up at Form Wizard Import, why?

    I installed Acrobat 9 Pro Complete (30 day trial) Version into my 64 bit Vista PC. After doing one Acrobat program required update to Windows, the program fully installed. When I go to Form Wizard, put in the name of a pdf file to open and click NEXT

  • Purchase order for sample material

    Dear All, Do you have any suggestion about purchase for sample material? During we develop new vendor, we will get sample material from them and do not pay, but after we use the material to produce, and the quality is OK, we will pay for the sample m

  • So I've heard the iPad 1 is slow ios 5.1.1

    I am thinking about buying my mother an iPad 1. I own the iPad 2 and have ios 6 but want to know how smoothly ios 5.1.1 which I think is the latest update runs on the original ipad. Also can anyone direct me to a video of its performance on ios 5.1.1

  • Crystal dashboard viewer

    Hi, I'm working with SAP Business One and we are looking for a report viewer solution that can run an RPT file or Xcelcius dashboard in fullscreen on an LCD monitor. It would need to have auto refresh functionality as well.  We want to show orders in

  • Error in exporting the exportEncryptionKey

    Hi, I am trying to Export encryption keys using the below command and getting the error. <MW_HOME>\oracle_common\common\bin>wlst.cmd exportEncryptionKey(jpsConfigFile="C:\Oracle\Middleware\user_projects\domains\base_domain\config\fmwconfig1\jps-confi