locked
Plugin running under SYSTEM account RRS feed

  • Question

  • Hi,

    CRM Details:

    CRM 4.0, SQL 2008, Roll Up 10, Server 2k3.

    We back up a DB and restored as different name in different SQL server in same domain & created a new Organization by importing it. Mapping done while importing is - auto map users. Now the issue is with the plug-in, the same plug-in working with the original DB, is not working.

    On service.execute throws an exception - server was unable to process the request. 

    We are getting context.userid as SYSTEM user, which is not visible in CRM, even though we had done

    ICrmService service = context.CreateCrmService(true) & in registration tool, it is selected as calling user.

    Installation of CRM is done by same logged in user and he is system administrator also in CRM, then also his ID is not coming in context.userid

    or initiating user id. One more update, in IIS, the same user which is administrator and used for importing org, when right clicked on CRM website and done Browse - after providing user name and password, it says "Invalid User Authorization - The user authentication passed to the platform is not valid"

    Steps followed to resolve the issue-

    1. Tried re-import the DB and created new Org.

    2. Tried Re-installing CRM on different port

    3. Admin user changed to different name and saved and then revert back.

    4. Plug-in executed with different account - same GUID of SYSTEM user.

    Does anyone know what is causing this?

    Thursday, April 12, 2012 4:04 AM

Answers

  • It is resolved after setting the log on user of email router service as a CRM admin user.

    Brickee

    • Marked as answer by Brickee Wednesday, April 18, 2012 11:37 AM
    Wednesday, April 18, 2012 11:24 AM

All replies

  • Hi Brikee,

    Is your app pool service account set to an account that is also a CRM user?

    hth,

    Scott


    Scott Durow
    Read my blog: www.develop1.net/public
    If this post answers your question, please click "Mark As Answer" on the post and "Mark as Helpful"

    Thursday, April 12, 2012 5:56 AM
    Answerer
  • No, it is set as Network Service for CRM app pool.

    Brickee

    • Marked as answer by Brickee Wednesday, April 18, 2012 10:08 AM
    • Unmarked as answer by Brickee Wednesday, April 18, 2012 10:08 AM
    Thursday, April 12, 2012 6:58 AM
  • It is resolved after setting the log on user of email router service as a CRM admin user.

    Brickee

    • Marked as answer by Brickee Wednesday, April 18, 2012 11:37 AM
    Wednesday, April 18, 2012 11:24 AM